Here is my situation.
I have a file called iframe.html, which contains the code to for a image slideshow. The code is somewhat like
iframe.html
<
Try this code:
$('#iframe').contents().find("html").html();
This will return all the html in your iframe. Instead of .find("html") you can use any selector you want eg: .find('body'),.find('div#mydiv').
.find("html")
.find('body')
.find('div#mydiv')