title: Submit Search on Enter Key?
body: <p>What needs to be done to have this form submitted when someone hits the 'enter' key?</p>
  
  <pre><code>&lt;form id="search" onsubmit="javascript:search(document.getElementById('searchText'))"&gt;
    &lt;input type='text' id='searchText' autofocus /&gt;
    &lt;input type='button' onclick="search(document.getElementById('searchText'))" value='Search' /&gt;
  &lt;/form&gt;
  </code></pre>