var keycode; if (window.event) keycode = window.event.keyCode; else if (e) keycode = e.which; else return; if (keycode == 13) absenden();