My main webpage is hosted on "DomainA" and it contains an iFrame sourced from "DomainB". Within this iFrame, there is a click event that opens a new window, also sourced from "DomainB".
I am attempting to update an input field within the iFrame from the newly opened window using the following code:
window.opener.document.getElementById('foo').value = 'bar';
This code works perfectly in Firefox, but in Internet Explorer I encounter the error: SCRIPT70: Permission denied
It appears that the Same Origin Policy may be causing this issue, even though both the parent page opening the window and the new window itself are from DomainB.
I have used a relative URI in the window.open() call. Is IE incorrectly identifying the domain based on the parent of the iframe?
How can I work around this limitation?