Answer the question
In order to leave comments, you need to log in
How to hang addEventListener( "focus ") on firefox focus event?
Tried that, but it didn't work
someDivOne=document.all("someDivOne");
someDivOne.addEventListener("focus",function(event){
event.target.style.background = "pink";
},true);
Answer the question
In order to leave comments, you need to log in
This only works in IE as far as I can remember!
document.all is Microsoft's proprietary extension to the W3C standard.
Use getElementById()
focus - event for inputs and text fields, and for hover - mouseover
Read all about the search for elements and events - so that questions disappear
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question