<!DOCTYPE html>
<html>
<body>
<h1>Element 对象</h1>
<h2>tabIndex 属性</h2>
<p>使用键盘上的“Tab”按钮导航以下链接。</p>
<p><a id="myAnchor1" href="https://www.w3school.com.cn">链接 1</a></p>
<p><a id="myAnchor2" href="https://www.w3school.com.cn">链接 2</a></p>
<p><a id="myAnchor3" href="https://www.w3school.com.cn">链接 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>