回车键激活按钮事件 在里加入onkeydown属性,值为: if(event.keyCode == 13) {document.form1.Button1.focus();document.getElementById('Button1').click();}