title: HTML - Button on click display value of textfield
body: <p>I use a textfield with code:</p>
  
  <pre><code>&lt;input type = "text" size = "2" maxlength = "2" name = "myname"&gt;
  </code></pre>
  
  <p>and a button with:</p>
  
  <pre><code>&lt;button type = "button" onclick = "alert('Clicked!')"&gt;Print&lt;/button&gt;
  </code></pre>
  
  <p>Now, as I click on it, a message/alert pops saying <code>Clicked!</code>. How can I make it just display whatever value was on the textfield instead? Ty</p>