Include HTML file via JavaScript
<p>This is a file stored locally, not on a server, so Server Side Includes do not work.</p>

<h2>Problem:</h2>

<p>I have an HTML file. There is lots of data in it, I want to split it into smaller parts, and then just include them all into my big html file, i.e. something like:</p>

<pre><code>main.html
  &lt;include "partA.html"&gt;
  &lt;include "partB.html"&gt;
  &lt;include "partC.html"&gt;
</code></pre>

<p>And I want the result as if the contents of partA,B,C.html were read right into main.html</p>

<p>Now, this is not on a server -- it's stored locally, so I can't do SSI. My question is:</p>

<p>Is there some simple way to do this via JavaScript? It seems like with JavaScript, I shoudl be able to:</p>

<ul>
<li>fetch the contents of blah.html [not sure how to do this ste[</li>
<li>call a document.write on it, to write it into the document</li>
<li>probably handle some stuff dealing with escaping strings</li>
</ul>

<h2>Question:</h2>

<p>How do I do this?</p>

<p>Thanks!</p>
