title: document.write() and .innerHTML not writing to HTML
body: <p>I've been working to print the results of a JavaScript function to a webpage; but I'm stuck on the printing - both <code>document.write()</code> and <code>.innerHTML</code> aren't printing anything to my <code>div</code> with <code>id</code> "output". None of the code below is changing anything:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      var print = document.getElementById("output");
      print.innerHTML = "hello world";
      document.write("hello");
  &lt;/script&gt;
  </code></pre>
  
  <p>What's going wrong?</p>