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

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -