HTML DOM name ÊôÐÔ

¶¨ÒåºÍÓ÷¨

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

Óï·¨

resetObject.tabIndex=tabIndex

ʵÀý

ÏÂÃæµÄÀý×Ó¿ÉÏÔʾ±íµ¥ÔªËØµÄ tab ¼ü¿ØÖÆ´ÎÐò£º

<html>
<head>
<script type="text/javascript">
function showTabIndex()
  {
  var email=document.getElementById('email').tabIndex;
  var r1=document.getElementById('reset1').tabIndex;
  document.write("Tab index of email: " + email);
  document.write("<br />");
  document.write("Tab index of reset button: " + r1);
  }
</script>
</head>
<body>

<form>
Email: <input type="text" id="email" tabindex="1"
size="25" value="someone@example.com" />
<br />
<input type="reset" id="reset1" tabindex="2" />
<br /><br />
<input type="button" onclick="showTabIndex()"
value="Show tabIndex" />
</form>

</body>
</html>
VUE