IE | Firefox | Chrome | Safari | Opera |
---|---|---|---|---|
所有主流浏览器均支持 tabIndex 属性。
改变三个链接的 tab 次序:
</>code
- <html>
- <head>
- <script>
- 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="https://www.365jz.com">1</a></p>
- <p><a id="2" href="https://www.365jz.com">2</a></p>
- <p><a id="3" href="https://www.365jz.com">3</a></p>
- <input type="button" onclick="changeTabIndex()"
- value="Change TabIndex">
- </body>
- </html>
如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛
Powered by 365建站网 RSS地图 HTML地图
copyright © 2013-2024 版权所有 鄂ICP备17013400号