HTML DOM tabIndex ÊôÐÔ

¶¨ÒåºÍÓ÷¨

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

Óï·¨

textObject.tabIndex=number

ʵÀý

ÏÂÃæµÄÀý×ÓÏÔʾ³ö²»Í¬Îı¾ÓòµÄ tab ¼ü¿ØÖÆ´ÎÐò£º

<html>
<head>
<script type="text/javascript">
function checkTab(x)
{
alert(x.tabIndex)
}
</script>
</head>
<body>

<form id="myForm">
<input type="text" tabindex="1" onclick="checkTab(this)">
<input type="text" tabindex="2" onclick="checkTab(this)">
<input type="text" tabindex="3" onclick="checkTab(this)">
</form>

</body>
</html>
VUE