Search code examples
javascriptasp.netcontrolstabindex

How to get TabIndex property of currently active control?


How do I find the TabIndex property of the control who has the active focus at runtime. I am using UlitmateEditor(Text Editor) i.e User Control , so i want focus inside the body of that Editor.


Solution

  • You should be able to just do:

    alert(document.activeElement.tabIndex);
    

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