function mysubmit(){ if(event.keyCode==13) document.forms[0].submit(); } document.οnkeypress=mysubmit;