本例输出不同表单域的 tab 键控制次序:
</>code
- <html>
- <head>
- <script type="text/javascript">
- function checkTab(x)
- {
- alert(
x.tabIndex
)- }
- </script>
- </head>
- <body>
- <form>
- <textarea id="txt1" tabindex="1" onclick="checkTab(this)">
- Hello world....This is a text area
- </textarea>
- <input id="txt2" type="text" tabindex="2" onclick="checkTab(this)">
- <input id="txt3" type="text" tabindex="3" onclick="checkTab(this)">
- </form>
- </body>
- </html>
如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛
Powered by 365建站网 RSS地图 HTML地图
copyright © 2013-2024 版权所有 鄂ICP备17013400号