title: get full html source code of page through ajax request through javascript
body: <p>The javascript code will be launched from www.example.com through the url bar in google chrome so i cannot make use of jquery. My goal is to pass the full html source code of www.example.com/page.html to a variable in javascript when i launch the code in www.example.com. Is this possible? If so how? I know to get the current page source it's just <code>document.documentElement.outerHTML</code> but i'm not sure how i'd do this. I think it's possible by using <code>responseText</code> somewhere in the following code:</p>
  
  <pre><code>http.send(params);
  var xmlhttp = new XMLHttpRequest();
  xmlhttp.open("GET","http://www.example.com/page.html",true);
  xmlhttp.send();
  </code></pre>