We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

nicolaspar on 01/19/07


Tagged


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 

Comments

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.