function document.onkeydown() { if(event.keyCode==13) { document.getElementById("Button1").click(); return false; } }