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>