救命吧!!!asp中如何让光标自动跳格
各位大虾,我现在有一问题苦思不能解决,我其中一段编码中是这样写的:
<%for i=1001 to 1037%>
<tr>
<td>
<input size= "5 " type= "text " name= "caoh " value= " <%=i%> " readonly= "true ">
<td>
<input size= "10 " type= "text " name= "wend " value=0> </td>
<td>
<input size= "10 " type= "text " name= "lvshp " value=0> </td>
<td>
<input size= "10 " type= "text " name= "dianjzhshp " value=0> </td>
</tr>
<%next%>
<input type= "submit " name= "sbm " value= "提交 ">
我现在想让光标在按下回车后自动跳到一下个文本框中,而不是直接提交到处理页面去,我该怎么办阿,救命吧!!!
------解决方案-------------------- <SCRIPT LANGUAGE= "JavaScript ">
function EnterKey()
{
if( event.keyCode == 13)
{
event.keyCode = 9;
}
}
</SCRIPT>
在FORM 中加入: onKeyDown= "EnterKey() "