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).