javascript - How to get focus node for ie -


i have div, want find current focus node(element) in div ie. firefox , chrome got focus node using selection attribute. there no kind of attribute ie.

selection.focusnode

pls give ideas. in advance.

try:

document.activeelement 

demo


Comments

Popular posts from this blog

mod rewrite - Doing external redirect. .htaccess NS flag not working. How to achieve similar results? -

mysql - How to insert just year and month into date field? -