Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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?

You are here: irt.org | FAQ | JavaScript | Window | Q1354 [ previous next ]

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>

©2018 Martin Webb