Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. SideShowBob1972

    onkeypress enter key

    That worked great, thanks.
  2. SideShowBob1972

    onkeypress enter key

    How do I do that?
  3. SideShowBob1972

    onkeypress enter key

    I used the following code to echo the code of each key. <script language="JavaScript"> document.onkeydown = checkKeycode function checkKeycode(e) { var keycode; if (window.event) keycode = window.event.keyCode; else if (e) keycode = e.which; alert("keycode: " + keycode); } </script> How do I...
  4. SideShowBob1972

    onkeypress enter key

    I just used some code to echo the keypress.
  5. SideShowBob1972

    onkeypress enter key

    Safari/Mac does not run either branch of the code. I have checked and when you press enter it does return keycode 13
  6. SideShowBob1972

    onkeypress enter key

    I have some code which checks for the enter key being pressed and then executes some code. function enterPressed(evn) { if (window.event && window.event.keyCode == 13) { Some code } else if (evn && evn.keyCode == 13) { Some Code } } document.onkeypress = enterPressed; It works on every...

Part and Inventory Search

Back
Top