Duplicate iframe: Copy head and body from 1 iframe to another
<p>Simple question which I can't seem to find an answer of:
I have two iframes on a page and I'd like to copy the content of the first one to the second.
But I can't do it by just copying the url of the first iframe to the second since the containing page is a dynamic one.</p>

<p>This code does do it, but a lot of the page-formatting seems to get lost. And I don't know if it's cross-browser either.</p>

<pre><code>iframe2.contentWindow.document.write(iframe1.contentWindow.document.body.innerHTML);
</code></pre>

<p>Can this be done?</p>
