HTML DOM tabIndex Property
Complete Anchor Object Reference
Definition and Usage
The tabIndex property sets or returns the tab order for a link
Syntax
anchorObject.tabIndex=tabIndex
|
Example
The following example changes the tab order for three links:
<html>
<head>
<script type="text/javascript">
function changeTabIndex()
{
document.getElementById('1').tabIndex="3"
document.getElementById('2').tabIndex="2"
document.getElementById('3').tabIndex="1"
}
</script>
</head>
<body>
<p><a id="1" href="http://www.w3schools.com">1</a></p>
<p><a id="2" href="http://www.w3schools.com">2</a></p>
<p><a id="3" href="http://www.w3schools.com">3</a></p>
<input type="button" onclick="changeTabIndex()"
value="Change TabIndex" />
</body>
</html>
|
Try-It-Yourself Demos
Set
the tab order for links
Complete Anchor Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|