HTML DOM tabIndex ÊôÐÔ
¶¨ÒåºÍÓ÷¨
tabIndex ÊôÐÔ¿ÉÉèÖûò·µ»Ø checkbox µÄ tab ¼ü¿ØÖÆ´ÎÐò¡£
Óï·¨
checkboxObject.tabIndex=number
ʵÀý
ÏÂÃæµÄÀý×ӿɸü¸Ä checkbox µÄ tab index£º
<html>
<head>
<script type="text/javascript">
function changeTabIndex()
{
document.getElementById('check3').tabIndex="1"
document.getElementById('check1').tabIndex="3"
}
</script>
</head>
<body>
<form>
<input type="checkbox" id="check1" tabIndex="1" /><br />
<input type="checkbox" id="check2" tabIndex="2" /><br />
<input type="checkbox" id="check3" tabIndex="3" /><br />
<input type="button" onclick="changeTabIndex()" value="Change tabIndex" />
</form>
</body>
</html>