Possible Duplicate:
jQuery/JavaScript: accessing contents of an iframe
If i run this on my localhost, it works fine, as long as the src if the iframe is on localhost aswell..
But as soon as i get it online, it doesent do a thing…
The goal right now is simply to alert the HTML that is loaded in to the iframe.
A security feature in browsers prevents you from accessing certain DOM objects inside iFrames whose document.domain property is different from the accessing iFrame.
If you’re trying to do some web scraping or automation via an iFrame, I’m afraid that’s not going to work very well.
Here’s a quick link with tons of information for iFrame do’s and don’ts:
http://softwareas.com/cross-domain-communication-with-iframes