I have a div, I want to find the current focus node(element) in div for ie. For firefox and chrome i got the focus node using selection attribute. There is no this 开发者_如何学编程kind of attribute for ie.
selection.focusNode
pls give your ideas. Thanks in advance.
try:
document.activeElement
DEMO
精彩评论