PDA

View Full Version : How do I stop the beep?


paul s
08-13-2002, 01:44 PM
I am using the function below to submit a form when the user presses the enter key. The problem is that when the enter key is pressed it casues a beep. Is there any way to stop the beep?


function submitLogin()
{
if (event.keyCode == 13) {
document.frmLogin.submit();
}
}

mordred
08-13-2002, 02:14 PM
I don't hear any beep when submitting a form this way. IE5.5 on Win2k.

paul s
08-13-2002, 02:58 PM
I am using IE6.0 on WinNT. I just tested it on IE5.5 with WinNT and it didn't beep. Any ideas on how to stop the beep for IE6.0?

Algorithm
08-13-2002, 08:46 PM
Sounds, as a general rule, are based on user settings. For some reason you have IE6 configured so that it beeps, but for most people it won't. If I were you, I wouldn't worry about it.

d_atl
03-18-2005, 04:01 PM
Add
event.returnValue=false;

related to form post. Return false after submit form and there is no beep.