window.opener -- Access Denied

Giganews Newsgroups
Subject: window.opener -- Access Denied
Posted by:  David Cohen (dav…@paralegaltech.com)
Date: Mon, 21 Jul 2003

From the main window, I'm opening a popup window.

In that poupup window, the user loads a number of different pages (by
submitting forms and clicking on buttons), some of which are in a
different domain.  But eventually, the user comes back to a page that is
in the same domain as the page in the main window.

On this page, I'm trying to execute the following script:

<script language="JavaScript" type="text/javascript">
    window.opener.document.forms[0].action="otherpage.asp";
    window.opener.document.forms[0].submit();
    window.opener.close();
</script>

Yes, there is a form on the page that has been sitting in the main
window this whole time.

However, I'm getting an "access denied" error.  Any thoughts?

Thanks,
David

Replies