title: Does document.body.innerHTML = "" clear the web page?
body: <p>When I refresh the page below in FF 3.0, I expected the web page to clear but it didn't.</p>
  
  <p>Why doesn't <code>document.body.innerHTML = ""</code> clear the page?</p>
  
  <p><strong>UPDATE:</strong>
  I am trying to clear the previous screen during a refresh while the new page is loading. I actually want to see the page clear, wait and then the next js running. I don't want to clear the screen after the page has loaded.</p>
  
  <pre><code>...
  &lt;body&gt;
      &lt;script type="text/javascript"&gt;
          document.body.innerHTML = "";
          for (var i = 0; i &lt; 1000000000; i++) {
          }
      &lt;/script&gt;
  
      &lt;img src="images/web.gif" /&gt;&lt;br /&gt;
  
      &lt;script type="text/javascript"&gt;
          document.write( "hello&lt;br /&gt;");
      &lt;/script&gt;
  
      &lt;img src="images/warning.png" /&gt;&lt;br /&gt;
  
  &lt;/body&gt;
  </code></pre>