|
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>
|
|
Complete Submit Object Reference
 |
W3Schools' Online Certification Program
The perfect solution for professionals who need to balance work, family, and career building.
More than 3500 certificates already issued!
|
The HTML Certificate documents your knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
|