Avoid re-creation of child window
Hi all.
Is it possible to:
1. open a pop-up window (child), when loading a page (parent)-
window.open(....)
2. reload the parent without re-creating the child
I short the my actual JS-code says:
if(!window.wo || window.wo.closed) {
wo = window.open ( ....);
wo.do***ent.write(....);
....
....
wo.do***ent.close();
}
else {
window.wo.focus ();
}
But everytime I reload the parent-page, the pop-up window re-creates.
Therefore I wonder if there's a global variable, that holds all the
browsers childwindows (i.e. an array), that can be accessed to determ if
the child is already open.
Regards
Peter
|