HTML DOM rows ÊôÐÔ
¶¨ÒåºÍÓ÷¨
tabIndex ÊôÐÔÉèÖûò·µ»Ø textarea µÄ tab ¼ü¿ØÖÆ´ÎÐò¡£
Óï·¨
textareaObject.tabIndex=number
ʵÀý
±¾ÀýÊä³ö²»Í¬±íµ¥ÓòµÄ tab ¼ü¿ØÖÆ´ÎÐò£º
<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>