title: Firefox & AJAX Junk after document element
body: <p>Im using a page fetch script to dynamically load a web page into a div. Heres the code. BTW Im using Firefox w/ Kubuntu</p>
  
  <pre><code>function fetch(URL, divId) {
          req = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("MSXML2.XMLHTTP.3.0");
      req.open("GET", URL);
      req.onreadystatechange = function() {
          if (req.readyState == 4 &amp;&amp; req.status == 200) {
              document.getElementById(divId).innerHTML = req.responseText;
          }
      }
      req.send(null);
  }
  </code></pre>
  
  <p>When i try to get it to load a page nothing happens and I get an error</p>
  
  <blockquote>
    <p>Error: junk after document element<br>
    Source File: file:///home/amnite/Stuff/MetalBraska/Shows/ContentRight.html<br>
    Line: 2, Column: 1<br>
    Source Code:<br>
    <code>&lt;img src="Layout/HeaderDiv.jpg" width="250px" height="7px"&gt;</code></p>
  </blockquote>