页面上Enter 键禁用 function NoExec() { if(event.keyCode==13) event.returnValue=false; } document.onkeypress=NoExec;