title: javascript passing text input to a onclick handler
body: <p>Lets say I have a form as below. How do I pass the value in the textbox named "configname" to the onclick function handler??</p>
  
  <pre><code>&lt;form id="loadconfigform"&gt;
          Config Name: &lt;input type="text" name="configname" /&gt;
          &lt;input type="button" value="Submit" onclick="onLoadConfigPress(configname)" /&gt;
      &lt;/form&gt;
  </code></pre>