加入收藏-方便您以后查找网页特效哦
你的位置:
主页
>>
实用代码
回车实现tab键功能
加入如下代码到body区域
<script language="javascript"> function enterkey() { if(event.keyCode==13) { if(event.srcElement.oID=="Inp") {event.keyCode=9;} } } window.onload=function(){textfield.focus()} document.onkeydown=enterkey </script> <input type="text" oID="Inp" name="textfield"> <input type="text" oID="Inp" name="textfield2"> <input type="text" oID="Inp" name="textfield3"> <input type="button" onclick="alert('测试')" value="确定">
COPYRIGHT © 2003-2005 ALL RIGHTS RESERVED
业务联系
|
广告服务
|
网站建设
|
关于我们
|
免责声明
月光宝盒工作室
800*600