title: How to pass text in a textbox to JavaScript function?
body: <p>Suppose I have the following HTML code, how can I pass the user's input to execute(str) JavaScript function as an argument?</p>
  
  <pre><code>&lt;body&gt;
  
  &lt;input name="textbox1" type="text" /&gt;
  &lt;input name="buttonExecute" onclick="execute(//send the user's input in textbox1 to this function//)" type="button" value="Execute" /&gt;
  
  &lt;/body&gt;
  </code></pre>