// key is ascii keycode var key = ((navigator.appName == "Netscape") ? event.which : event.keyCode) // enter is ASCII 13 var isEnter = key == 13 if (isEnter) { return false } else return true