This is a follow-up. This code doesn't appear to work.
Assuming you have an iframe
<iframe name="loader" height=0 width=0 style="visibility: hidden">
Then once a page is loaded into the iframe you should be able to get the contents with
var html = document.loader.innerHTML;
I get the Iframe content but nothing in html.