title: how to assign the "Enter key" to an onclick event?
body: <p>here i have number input bar with a tag assigned as button , i have an onclick function . how can i make the oncklick to be executed when the user press enter ?  ( at this point the user will input a number in the box and press the button with the mouse - how can i make it so the user will input the number and press Enter and the same onclick function will be executed ? )</p>
  
  <p>many thanks in advance.</p>
  
  <p>i tried some codes but they wont work</p>
  
  <pre><code>enter code here
  
  
  &lt;div id="foot1"&gt;
  
   &lt;form action="" method="" name="vform"&gt;
   &lt;input type ="number" min="0" max="10000000" 
    placeholder="PEEM it!" value="" id="footbar"  /&gt;
    &lt;div id="foot2"&gt;
     &lt;li class="foot" alt="foot"  title="FOOT (ft)" onclick="runfoot()"&gt;&lt;a  
    href=""&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;/div&gt;
    &lt;/div&gt;
  </code></pre>