jQuery call load(url) and store content as string
<p><code>$('#loadHere').load('https://www.google.com');</code> - At present, this loads the Google homepage in <code>&lt;div id="loadHere"&gt;&lt;/div&gt;</code>.</p>

<p>What I would like to do is somehow store that output as an HTML string in a <code>var</code> instead.</p>

<p><strong>Pseudo-code</strong>:
<code>var googleString = parseString($.load('https://www.google.com'));</code></p>

<p>When <code>googleString</code> is output, it would spit out <code>&lt;html&gt;...&lt;head&gt;...&lt;body&gt;...&lt;/html&gt;</code>. </p>

<p>Is this possible?</p>

<p>My ultimate intention is to search through the <code>string</code> for a particular <code>id</code>.</p>

<p>Thank you kindly.</p>

<p><em>Index.html:</em></p>

<pre><code>&lt;!--snip--&gt;
&lt;script src="https://.... jQuery file"&gt;&lt;/script&gt;
&lt;div id="loadHere"&gt;&lt;/div&gt;
&lt;script src="changePage.js"&gt;&lt;/script&gt;
&lt;!--snip--&gt;
</code></pre>

<p><em>changePage.js</em></p>

<pre><code>$(document).ready(function(){
$('#loadHere').load('https://www.google.com');
}
</code></pre>

<p>[Edit] - Included snippets of the two files.</p>