title: Javascript that submit a form when pressing the ENTER
body: <p>I have a button, the code for which is shown below:</p>
  
  <pre><code>&lt;a href="javascript:document.forms['ContactForm'].submit();" onClick="return ValidateContactForm();" class="button"&gt;&lt;span&gt;Submit&lt;/span&lt;/a&gt;
  </code></pre>
  
  <p>What JavaScript code do I need so that the form will be submitted when I press the "Enter" key on the keyboard?</p>