禁止回车触发事件
<script type="text/javascript"> document.onkeydown=function(){ var myEvent=event?event:(window.event ? window.event : null); var keycode=myEvent.keyCode; if(myEvent.keyCode==13){ myEvent.keyCode=9;(9是tab建) myEvent.returnValue=false; } }; </script>