title: Document.write issues
body: <p>I am making a page where users can answer questions (using radio buttons) about a product they are selling back. When they hit a button at the bottom of the page, a price quote will pop up. I have written a javascript function to be performed when the user hits the button. It calculates the price and displays it using document.write, but whenever the user hits the button, it opens up a new page and displays what I told it to.</p>
  
  <pre><code>function getQuote(){
      document.write("Your Quote Is: $", price, ".00");
  }
  </code></pre>
  
  <p>And here is the code for the button:</p>
  
  <pre><code>&lt;button type="button" onclick='getQuote()'&gt;Display Quote&lt;/button&gt;
  </code></pre>
  
  <p>But when I push the button, a new page shows up and it shows the quote with only the formatting I put into the <code>document.write</code> phrase.</p>
  
  <p>I have tried using <code>.innerHTML</code> to send the <code>document.write</code> to another part of the page, but the same problem persists.</p>
  
  <p>What can I do to make sure that the quote shows up on the page, where I want it to?</p>