title: Submit a textbox by pressing enter key
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5943954/bind-textbox-to-enter-key">Bind textbox to &#39;enter&#39; key</a>  </p>
  </blockquote>
  
  
  
  <p>I have a search text box. I would like to get it submitted while pressing the <kbd>enter</kbd> key (when that text box is focused only). I am not using any submit button. Can this be accomplished using javascript? </p>