Convert a link into an iframe using Javascript
<p>So let's say I have a link</p>

<pre><code>&lt;a href="http://URL"&gt;&lt;/a&gt;
</code></pre>

<p>In place of this link, I want to instead show an IFRAME that contains the contents of the link. Example:</p>

<pre><code>&lt;iframe src="http://URL"&gt;&lt;/iframe&gt;
</code></pre>

<p>The width of this iframe would be 100% and the height of the iframe would dynamically be calculated to equal the height of the resulting page (aka the <a href="http://URL" rel="nofollow">http://URL</a>).</p>

<p>How would I do this with a pure Javascript solution?</p>