Posted in Javascript onNovember 19, 2013
<head> <script> function EnterPress(e){ //传入 event var e = e || window.event; if(e.keyCode == 13){ document.getElementById("txtB").focus(); } } </script> </head> <body> <input type="text" id="txtA" onkeypress="EnterPress(event)" onkeydown="EnterPress()" /> <input type="text" id="txtB" /> </body>
js文本框输入点回车触发确定兼容IE、FF等
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@