I need to change the domain of the document and then set it back again to the original value.
It looks something like this [the page is on domain base.site.com]:
function execute ()
{
document.domain = "site.com";
// Access an object that is on another frame, but did the same set of the domain
document.domain = "base.site.com";
// Access an object that is on this page (window.createPopup ())
}
The problem is that this works fine on IE6 (I did not test on 7). But it gives me an error [Invalid argument] when i execute the second document.domain.
Is there any way to "reset" the domain of the document in IE8?