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

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

c# - Detect changes in ObjectSet in Entity Framework 4.0? -