I'm inserting an iframe to display another website's content in mine, and I'd like to clean it up first. So I tried to use $('iframe').contents, but the return is undefined, while $('iframe') works like a charm. Is there some kind of cross site security here ?
Bonus question : how should I clean the page then ? I just need div#main, not the rest. I'm using an iframe so I can get the original styling.
Thanks for your time
 
     
     
    