焦点控制
现在有一个页面里面有TextBox1~10,我想在每次输入完一个文本框之后按下回车键跳到下一个文本框,要求是不用提交提交到服务器,直接本地完成.
------解决方案-------------------- <FORM METHOD= "POST ">
Name: <INPUT TYPE= "TEXT " onKeyDown= "if(event.keyCode==13) event.keyCode=9; "> <BR>
Address: <INPUT TYPE= "TEXT " onKeyDown= "if(event.keyCode==13) event.keyCode=9; "> <BR>
City: <INPUT TYPE= "TEXT " onKeyDown= "if(event.keyCode==13) event.keyCode=9; "> <BR>
<INPUT TYPE= "submit " Value= "Ok ">
<INPUT TYPE= "reset " Value= "Cancel ">
</FORM>