[Javascript] Closing multiple child windows

Liam Rice Liam.Rice at autodata.net
Tue Dec 6 11:27:14 CST 2005


I have a page in which a user is able to open zero to many child
windows.  I need to be able to close all of these child windows within a
single function.  Anybody ever created something like this before?  I've
got no problem closing just a single child, but when I have more than
one open is where I'm having issues.  Any help would be appreciated,
thanks
 
var childWin = null;
 
childWin = window.open('flash/' + sFileName, '', 'top=' + iTop + ',
left=' + iLeft + ',
width=740,height=450,scrollbars=no,menubar=no,toolbar=no,resizable=no,st
atus=no');
 
function closeChild() {
  if (confirm('This will close any courses you have open.  Do you wish
to continue?')) {
    if (childWin != null && !childWin.closed) childWin.close();
  }
}
Liam David Edwin Rice

Liam.Rice at Autodata.net

This message has originated from Autodata Solutions. The attached
material is the Confidential and Proprietary Information of Autodata
Solutions. This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please delete
this message and notify the Autodata system administrator at
Administrator at autodata.net

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20051206/082ee065/attachment.htm>


More information about the Javascript mailing list