title: retrieving text field value using javascript
body: <p>I want to retrieve textfield value using javascript. suppose i have a code like:</p>
  
  <pre><code> &lt;input type='text' name='txt'&gt;
  </code></pre>
  
  <p>And I want to retrieve it using javascript. I call a function when a button is clicked:</p>
  
  <pre><code>&lt;input type='button' onclick='retrieve(txt)'&gt;
  </code></pre>
  
  <p>What coding will the retrieve function consist of?</p>