欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

HTML DOM tabIndex 屬性

定義和用法

tabIndex 屬性可設(shè)置或返回確認(rèn)按鈕的 tab 鍵控制次序。

語(yǔ)法

submitObject.tabIndex=tabIndex

實(shí)例

下面的例子可顯示表單元素的 tab 鍵控制次序:

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

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

</body>
</html>