Cross-domain access in iframe from child to parent

cross-domainiframe

How do we access parent document from a document loaded inside an iframe when the page loaded inside iframe is from another domain?

I am getting a permission denied error.

Best Answer

if you have control of both documents, then you could easily use easyXDM (http://easyxdm.net) to communicate between them. A nice and easy example of using it can be found at http://consumer.easyxdm.net/current/example/methods.html