<html>
<body>
<h1>Element 对象</h1>
<h2>tabIndex 属性</h2>
<a href="https://www.w3school.com.cn/"
tabindex="2">W3School</a><br>
<a href="http://www.google.com/"
tabindex="1">Google</a><br>
<a href="http://www.microsoft.com/"
tabindex="3">Microsoft</a>
<p>第一个链接的 Tab 顺序是:</p>
<p id="demo"></p>
<script>
let order = document.getElementsByTagName("A")[0].tabIndex;
document.getElementById("demo").innerHTML = order;
</script>
</body>
</html>