编辑您的代码:
查看结果:
<html> <head> <script type="text/javascript"> function showTabIndex() { var email=document.getElementById('email').tabIndex; var pwd=document.getElementById('pwd').tabIndex; document.write("Tab index of email field: " + email); document.write("<br />"); document.write("Tab index of password field: " + pwd); } </script> </head> <body> <form> Email: <input type="text" id="email" tabindex="1" /> <br /> Password: <input type="password" id="pwd" tabindex="2" /> <br /> <input type="button" onclick="showTabIndex()" value="Show tabIndex" /> </form> </body> </html>
查看结果:
系统帮助
|
给我留言
|
收藏本站
Copyright © 2005-2008
www.cnn84.com
All Rights Reserved Ver:2.0
桂公网安备45122402000102号
CNN84网是公益性便民网站,是为了给大家的日常生活查询及提供最快捷的出行指南
太晚了,CNN84提醒您:该休息了!