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:

From

Cover of Head First JavaScript Programming

Note

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