Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1354 How can I load a document into the opener window of a popop window, where the opener window has since loaded a secure page?

irt.org | Knowledge Base | JavaScript | Window | Q1354 [ previous next ]

Q1354 How can I load a document into the opener window of a popop window, where the opener window has since loaded a secure page?

In some versions of Internet Explorer attempting to alter the href property of the opener window (opener.href = 'http://www.irt.org') will result in a "Permission Denied" message. Instead first name the opener (do this as soon as the popup opens) and then target it:
<script language="JavaScript"><!--
opener.name = 'main';

// much later...

window.open('page.html','main');
//--></script>

or:

<a href="page.html" target="main">text link</a>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.