do I use document.activeElement to detect focus changes?
- by jedierikb
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).