js 实现回车到下一个空白处
<script language="javascript">
function changeFocus(){
if(event.keyCode==13 && event.srcElement.type!='submit')
event.keyCode=9;
}
document.onkeydown= changeFocus;
</script>
<body>
<form action="2.jsp">
<input type="text" id="name"/>
<br />
<input type="text" id="password"/>
<br />
<input type="submit" value="按钮" />
</form>
</body>