开发者

How to get focus node for ie

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜