function blured() { var myA = document.getElementsByTagName('a'); for(var i=0; i < myA.length; i++) { myA[i].onfocus = myA[i].blur; } }