fi76631
asked on
Beep when I hit Enter on Form
Hi All,
<form ....>
<input type="text" ....>
</form>
When I position the cursor on the text box of the form and hit enter, the IE 5.5 generates a BEEP. Its not your standard 'click' sound, its like an error beep.
The reason is because I do NOT have an input="submit" or input="image" form element. Its as if the browser if trying to respond to the enter key press event by submitting the form for me, but cant find a form element that would be responsible for performing a submit action (ie: a submit or an image element)
Why dont I have either of these?...because I am controlling the submitting of the form through Javascript.
The problem?...the beep is really annoying!!...can anyone suggest a way of getting rid of it.....maybe cancelling the event?...
I have tried event.cancelBubble=true for the keyPress, keyUp and KeyDown events, but no joy.
Any help or suggestions appreciated
Thanks
<form ....>
<input type="text" ....>
</form>
When I position the cursor on the text box of the form and hit enter, the IE 5.5 generates a BEEP. Its not your standard 'click' sound, its like an error beep.
The reason is because I do NOT have an input="submit" or input="image" form element. Its as if the browser if trying to respond to the enter key press event by submitting the form for me, but cant find a form element that would be responsible for performing a submit action (ie: a submit or an image element)
Why dont I have either of these?...because I am controlling the submitting of the form through Javascript.
The problem?...the beep is really annoying!!...can anyone suggest a way of getting rid of it.....maybe cancelling the event?...
I have tried event.cancelBubble=true for the keyPress, keyUp and KeyDown events, but no joy.
Any help or suggestions appreciated
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
;-)
ASKER