do I use document.activeElement to detect focus changes?
Posted
by jedierikb
on Stack Overflow
See other posts from Stack Overflow
or by jedierikb
Published on 2010-03-15T20:38:01Z
Indexed on
2010/03/15
20:39 UTC
Read the original article
Hit count: 658
JavaScript
|javascript-events
After looking at the answers here: http://stackoverflow.com/questions/497094/how-do-i-find-out-which-javascript-element-has-focus http://stackoverflow.com/questions/483741/how-to-determine-which-html-page-element-has-focus
I can see that using document.activeElement is a great way to know which element has focus. But how do I use document.activeElement to detect changes to focus (or maybe I don't and I need to research a better way. Want to know if I am barking up the wrong tree).
© Stack Overflow or respective owner