Posted By

nicolaspar on 01/19/07


Versions (?)

Javascript - Sacar de foco un A

 / Published in: JavaScript

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

  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  


RSS Icon Subscribe to comments
Posted By: Roberto on January 23, 2007

function unFocusA() { anclas=document.getElementsByTagName("a").length; for (i=0;i

You need to login to post a comment.