When onblur occurs, how can I find out which element focus went *to*?
- by Michiel Borkent
Suppose I attach an onblur function to an html input box like this:
<input id="myInput" onblur="function() { ... }"></input>
Is there a way to get the ID of the element which caused the onblur event to fire (the element which was clicked) inside the function? How?
For example, suppose I have a span like this:
<span…