title: Assign div text to variable then show it
body: <p>I have a simple task I'm trying to accomplish learning JavaScript but haven't been able to find a clear answer. Here's the code;</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  var show = document.getElementById("box");
  document.write(show);
  &lt;/script&gt;
  
  
  &lt;div id="box"&gt;Testing&lt;/div&gt;
  </code></pre>
  
  <p>Basically I want the text in the box div to be stored into a variable. Then, I want to display that variable's text on a different part of the page. With the code above I get a null error.</p>
  
  <p>Thanks.</p>