开发者

How to get TabIndex property of currently active control?

开发者 https://www.devze.com 2023-02-13 12:46 出处:网络
How do I find the TabIndex property of the control who has the active focus at runtime. I am using UlitmateEdi开发者_Go百科tor(Text Editor) i.e User Control , so i want focus inside the body of that E

How do I find the TabIndex property of the control who has the active focus at runtime. I am using UlitmateEdi开发者_Go百科tor(Text Editor) i.e User Control , so i want focus inside the body of that Editor.


You should be able to just do:

alert(document.activeElement.tabIndex);

The should get you the active control and its tab index.


http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webcontrol.tabindex.aspx


AFAIK asp.net is a technology for serving HTML pages =)
If you want to know tabindex of current element in HTML, then you should use document.activeElement.tabIndex. this seems to be javascript question, though.

0

精彩评论

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