Posted By

localhorst on 12/17/08


Tagged

focus Blur mootools


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

bionic


[mootools] remove onfocus dotted outline from clicked link images


 / Published in: JavaScript
 

simple if your client wish to remove the dotted outline from images if they are clicked (and if they are links).

  1. window.addEvent("domready", function() {
  2. $$('a img').each(function(el) {
  3. el.addEvent('focus', function(e) {
  4. this.blur();
  5. });
  6. });
  7. });

Report this snippet  

You need to login to post a comment.