title: How to get value from HTML textbox in Javascript
body: <p>I simply want to have a textbox on my webpage, using the HTML form, and input tags, and be able to have the inputted value be used by the Javascript on the page. My HTML looks like this:</p>
  
  <pre><code>&lt;div id="firstq"&gt; 
  &lt;form id="firstbox"&gt;
      Choice: &lt;input id="firstinput" type="text" name="choice"&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and the Javascript I'm trying to use looks like this:</p>
  
  <pre><code>var topMenuChoice = document.getElementById("firstinput");
      document.write(topMenuChoice);
  }
  </code></pre>
  
  <p>However, all I see on the webpage, underneath the textbox, is "[object HTMLInputElement]". What do I do to get this to work right?</p>
  
  <p>Thanks</p>