How do I use javascript to pull all webpages that link to a page?
<p>I am trying to figure how you can use javascript to search through the code of all .htm files in a folder A and display on a specific page 1 all the pages in that contain links to page 1.
I've come up with an alg for a javascritp code that I figured was simple and should work.</p>

<pre><code>x = filename of current webpage Z;
for every .htm file i in folder A;
   for every &lt;href&gt; in file i;
       if href's filename = x;
           put into iframe of Z, a link to file i;
</code></pre>

<p>I am new to scripting so I haven't been able to use the libraries to its full xtent yet. Is there a way to delve through all .htm using javascript and search throguh the code for links?</p>
