I have an iframe for a cross-domain site. I want to read the iframe DOM, which I thought was possible because, using the inspector, I can even change the iframe's DOM. However, whenever I try to read it, I come across the same origin policy. All I want is the content loaded into my local DOM from the iframe. I thought it would be as simple as $(document.body).find('iframe').html() , but it returns an empty string.
I really hope that there is a way to do this, since the work that I have done over the past few days has been based on the fact that this is possible.
thank
javascript jquery html html5 iframe
D-Nice May 29 '11 at 22:47 2011-05-29 22:47
source share