title: How do I get the Document object from a separate URL?
body: <p>I'm making a program to parse a bunch of information from several pages of a database website for a JavaScript library. Just by messing around with the console, I've figured out how to isolate the information I need, but I don't know how to access the information from the parsing program. I'm almost exclusively proficient at HTML/JavaScript, so naturally I'm sticking with what I know for what should be a relatively simple parser. Here's the basic idea of what I intend to do:</p>
  
  <pre><code>for (var i = 0; i &lt; 5; i++) {
      var outsideHTML = getDocumentByURL("https://www.example-database.com/page-"+i);
  
      //other code that parses information from the variable "outsideHTML"
  }
  </code></pre>
  
  <p>I just need a function to serve as <code>getDocumentByURL()</code>. Thanks in advance.</p>