First of all, this is not standard behavior to get a sound when you press enter in the text box on a web page. Try finding the Google search page or, for that matter, try the Name, Email, and Home fields at the bottom of this page. None of them beeps when you press enter - in any browser.
To prevent a beep, handle the onKeyDown event in the <INPUT> and return false if the enter key is pressed:
<input type="text" name="TextBox1" value="" onKeyDown="return StopBeepOnEnter(event)" /> <script type="text/javascript"> function StopBeepOnEnter(event) { if (event.keyCode == 13) { </script>
And here is the same with jQuery (I really tested this and it solved the problem for me):
<script type="text/javascript"> $("#<%=TextBox1.ClientID %>").keydown(function(event) { if (event.keyCode == 13) { </script>
I found a solution in this thread - Tarn Jaggar loan:
http://codingforums.com/showthread.php?t=36491
Mts
source share