Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>The Element Object</h1>
<h2>The tabIndex Property</h2>
<p>Navigate the links below by using the "Tab" button on you keyboard.</p>
<p><a id="myAnchor1" href="https://www.w3schools.com">Link 1</a></p>
<p><a id="myAnchor2" href="https://www.w3schools.com">Link 2</a></p>
<p><a id="myAnchor3" href="https://www.w3schools.com">Link 3</a></p>
<script>
document.getElementById("myAnchor1").tabIndex = "3";
document.getElementById("myAnchor2").tabIndex = "2";
document.getElementById("myAnchor3").tabIndex = "1";
document.getElementById("myAnchor3").focus();
</script>
</body>
</html>