F
FAQ server
-----------------------------------------------------------------------
FAQ Topic - How do I check to see if a childwindow is
open, before opening another?
-----------------------------------------------------------------------
var myWin=null;
function openWin(aURL) {
if (!myWin || myWin.closed ) {
myWin=window.open(aURL,'myWin');
} else{
myWin.location=aURL;
myWin.focus();
}
}
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/closed.asp
http://docs.sun.com/source/816-6408-10/window.htm#1201877
===
Postings such as this are automatically sent once a day. Their
goal is to answer repeated questions, and to offer the content to
the community for continuous evaluation/improvement. The complete
comp.lang.javascript FAQ is at http://jibbering.com/faq/index.html.
The FAQ workers are a group of volunteers.
FAQ Topic - How do I check to see if a childwindow is
open, before opening another?
-----------------------------------------------------------------------
var myWin=null;
function openWin(aURL) {
if (!myWin || myWin.closed ) {
myWin=window.open(aURL,'myWin');
} else{
myWin.location=aURL;
myWin.focus();
}
}
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/closed.asp
http://docs.sun.com/source/816-6408-10/window.htm#1201877
===
Postings such as this are automatically sent once a day. Their
goal is to answer repeated questions, and to offer the content to
the community for continuous evaluation/improvement. The complete
comp.lang.javascript FAQ is at http://jibbering.com/faq/index.html.
The FAQ workers are a group of volunteers.