x
1
2
<html>
3
<head>
4
<meta charset="utf-8">
5
<title>蜜蜂教程(mifengjc.com)</title>
6
<script>
7
function changeTabIndex() {
8
document.getElementById('1').tabIndex = "3";
9
document.getElementById('2').tabIndex = "2";
10
document.getElementById('3').tabIndex = "1";
11
}
12
</script>
13
</head>
14
<body>
15
16
<p><a id="1" href="https://www.mifengjc.com">1</a></p>
17
<p><a id="2" href="https://www.mifengjc.com">2</a></p>
18
<p><a id="3" href="https://www.mifengjc.com">3</a></p>
19
<input type="button" onclick="changeTabIndex()" value="改变标签索引">
20
<p>试着先使用“Tab”按钮导航到链接之后你单击“改变标签索引”按钮。</p>
21
22
</body>
23
</html>