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

Feedback on: irt.org FAQ Knowledge Base Q309, July 20, 2000 at 14:06:25:

You are here: irt.org | About | Feedback | 1514 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q309

Sent by
Adam Edell on July 20, 2000 at 14:06:25:

Worth:
Worth reading

Comments:
The question was: "Q309 MSIE3 doesn't seem to recognize opener in a pop-opened window, what do I do?"

and your answer in MANY locations on your site is some variation of this:

The opener property is not defined by default in older browsers. It's 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>

However, what happens when you have a script in the popup window that says something like:

opener.name = "mainwindow"

How will IE3 react to this? Don't you have to use something like:

msgWindow.opener.name = "mainwindow" ???

I don't have IE3, but when I try this, using msgWindow.opener causes an error in newer browsers...

Can it be that simple? Will IE3 will accept

opener.location.href

instead of msgWindow.opener.location.href ???

???




©2018 Martin Webb