Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Closing multiple child windows
- From: Liam.Rice at autodata.net (Liam Rice)
- Subject: [Javascript] Closing multiple child windows
- Date: Tue Dec 6 15:31:19 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@xxxxxxxxxxxx
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@xxxxxxxxxxxx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.LaTech.edu/pipermail/javascript/attachments/20051206/082ee065/attachment.html
- Follow-Ups:
- [Javascript] Closing multiple child windows
- From: Peter Brunone
- [Javascript] Closing multiple child windows
- Prev by Date: [Javascript] window.onload questions
- Next by Date: [Javascript] Closing multiple child windows
- Previous by thread: [Javascript] window.onload questions
- Next by thread: [Javascript] Closing multiple child windows
- Index(es):