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

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

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

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

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?'


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.