Onblur Fails... Onclick works?!
Posted: Fri May 20, 2011 7:38 pm
Why won't onblur work? onclick works!
var allDivs = document.getElementsByTagName('div'); for (var i=0; i< allDivs.length; i++) { if (allDivs.className.indexOf('goal_icon_holder') != -1) { allDivs.onblur = function() { alert('test'); } allDivs.onclick = function() { alert('test'); } } }