Forum Moderators: open
so say my page is example.com/page.htm, and it has an iframe like:
iframe src='otherExample.com/otherPage.htm'
I want to run a javascript on otherPage.htm that has access to the contents of example.com/page.htm.
It seems like there's a block built into javascript to stop this from happening. If I load the page from my own domain it will have full access to the parent page (using things like document.top, top.document, etc). But if I load the same page from a remote domain, it thinks the top document is itself, it won't see the container page.
Is there a workaround? Something rings a bell about this being for security purposes