HTML DOM tabIndex Property
Complete Submit Object Reference
Definition and Usage
The tabIndex property sets or returns the tab order for a submit button.
The tab order is the order the submit button appear if you navigate the page using
the "tab" button on the keyboard.
Syntax
submitObject.tabIndex=tabIndex
|
Example
The following example shows the tab order for the form elements:
<html>
<head>
<script type="text/javascript">
function showTabIndex()
{
var email=document.getElementById('email').tabIndex;
var r1=document.getElementById('submit1').tabIndex;
document.write("Tab index of email: " + email);
document.write("<br />");
document.write("Tab index of submit button: " + r1);
}
</script>
</head>
<body>
<form>
Email: <input type="text" id="email" tabIndex="1"
size="25" value="[email protected]" />
<br />
<input type="submit" id="submit1" tabIndex="2" />
<br /><br />
<input type="button" onclick="showTabIndex()"
value="Show tabIndex" />
</form>
</body>
</html>
|
Try-It-Yourself Demos
Show
the tab order of form elements
Complete Submit Object Reference
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|