How can I recognize that the key i pressed in my keyboard is an ENTER key?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Exequiel
    Contributor
    • Jul 2012
    • 288

    How can I recognize that the key i pressed in my keyboard is an ENTER key?

    Hello friends, i want to know how to detect the enter key in my keyboard, if i pressed the enter key it must alert("You pressed enter key");
    any reply are gratefully appreciated. . :) thanks. . :)
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    check out the keyCode property.

    Comment

    • Exequiel
      Contributor
      • Jul 2012
      • 288

      #3
      @Dormilich. Wow!, thank you so much for that link. :)

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        no problem.

        Comment

        Working...