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
<
This can be another solution if jquery is loaded in iframe.html.
$('#iframe')[0].contentWindow.$("html").html()