O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

Serious Coding

Finding it clumsy to have to click the Fire! button with every guess? Sure, clicking works, but it’s slow and inconvenient. It would be so much easier if you could just press RETURN, right? Here’s a quick bit of code to handle a RETURN key press:


Cover of Head First JavaScript Programming


How to use "Enter" key in addition to clicking?