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="someone@example.com" />
<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
Want To Be A Web Master?
If you want to be a Web Master, you will have to host your web site with an ISP (Internet Service Provider).
MaximumASP offers seven different configurations of dedicated servers to meet your Windows and .NET hosting needs.
Hosted on our multi-tiered Enterprise Class network, these servers provide the performance, security and reliability
you need to host your high end web sites and applications.
Visit MaximumASP
|