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

Q309 Internet Explorer 3 doesn't seem to recognize opener in a pop-opened window, what do I do?

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

The opener property is not defined by default in older browsers. Its not a big problem as it is possible to define it yourself in the main window that opens the popup window:

<SCRIPT LANGUAGE="JavaScript"><!--
function newWindow(file,window) {
    msgWindow=open(file,window,'resizable=no,width=200,height=200');
    if (msgWindow.opener == null) msgWindow.opener = self;
}
//--></SCRIPT>

The following was submitted by darkpractice:

If you are the author of the popup, you can set the window.opener property to null and prevent this message from showing (IE5.5+, and Mozilla I believe).

Feedback on 'Q309 Internet Explorer 3 doesn't seem to recognize opener in a pop-opened window, what do I do?'

©2018 Martin Webb