[mootools] remove onfocus dotted outline from clicked link images


/ Published in: JavaScript
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.