title: How do I make a textbox and button so it will fire a javascript method and not post?
body: <p>How do I create a textbox and button in HTML so that when I click it, it will fire a javascript method with the value and output the result below the textbox/button?  And if you click again, it will continue to add new lines of output below the textbox/button?</p>
  
  <p>Say I have the following function:</p>
  
  <pre><code>function double(number)
  {
      return number * 2;
  }
  </code></pre>
  
  <p>and I want a textbox and button so if I click the button three times, I will get this:</p>
  
  <blockquote>
    <p>Textbox Here (value of 2) - Button here<br>
    4<br>
    4<br>
    4  </p>
  </blockquote>
  
  <p>How is this done?  Do I use a form with two input tags?  Or use button tag?  How do I make it keep outputing below the textbox/button?</p>
  
  <p>I'm sorry if this question is difficult to read, my english isn't very good.</p>