Javascript - Sacar de foco un A


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

Desmarcar los links cuando se hace clic. Llamarla en el onload del documento


Copy this code and paste it in your HTML
  1. function unFocusA() {
  2. anclas=document.getElementsByTagName("a").length;
  3. for (i=0;i<anclas;i++)
  4. document.getElementsByTagName("a").item(i).onfocus=new Function("if(this.blur)this.blur()")
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.