HTML DOM tabIndex ÊôÐÔ

¶¨ÒåºÍÓ÷¨

tabIndex ÊôÐÔÉèÖûò·µ»ØÔªËØµÄ tab ¼ü¿ØÖÆ´ÎÐò¡£

Óï·¨

HTMLElementObject.tabIndex=tabIndex

ä¯ÀÀÆ÷Ö§³Ö

IE Firefox Chrome Safari Opera

ËùÓÐÖ÷Á÷ä¯ÀÀÆ÷¾ùÖ§³Ö tabIndex ÊôÐÔ¡£

ʵÀý

¸Ä±äÈý¸öÁ´½ÓµÄ tab ´ÎÐò£º

<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="http://www.w3schools.com">1</a></p>
 <p><a id="2" href="http://www.w3schools.com">2</a></p>
 <p><a id="3" href="http://www.w3schools.com">3</a></p>

 <input type="button" onclick="changeTabIndex()"
 value="Change TabIndex">

 </body>
</html> 

Ç××ÔÊÔÒ»ÊÔ

VUE