HTML form表单回车触发提交
<script type="text/javascript">
function submitByEnter()
{
if(event.keyCode == 13)
{
login();
document.getElementByIdx_x("password").value="";
}
}
</script>
<form class="mainmenu" onkeydown="submitByEnter();">
欢迎点评,共同学习,共同进步