Hi
I would try:
<script language="JavaScript">
<!--
//
function closeAllChildFrames() {
var ChildFrames = document.frames;
for(var i=0; i<ChildFrames; i++) {
ChildFrames[i].window.close();
}
}
// -->
</script>
<BODY onload="closeAllChildFrames()">
Cheers,
Sten Hougaard
EDB Gruppen
Application developer/web-designer
"Rajkishore
Dash" To: "JavaScript HowTo" <javascript_howto@p...>
<R.DASH@p... cc:
om> Subject: [javascript_howto] How to know the clild windows of a
current window ?
02/12/2002
12:18 PM
Please respond
to "JavaScript
HowTo"
Hi,
Can anybody please tell me how to get all the child windows of a parent ? I
need to close all the clild windows( if any open ) on load of a parent
window ?
Thanks and Regards
Raj
EXT 6146
-------------------------------------------------------------------
The contents of this e-mail are confidential to the ordinary user
of the e-mail address to which it was addressed and may also be
privileged. If you are not the addressee of this e-mail you should
not copy, forward, disclose or otherwise use it or any part of it
in any form whatsoever. If you have received this e-mail in error
please notify us by telephone or e-mail the sender by replying to
this message, and then delete this e-mail and other copies of it
from your computer system. Thank you.
We reserve the right to monitor all e-mail communications through
our network.
$subst('Email.Unsub').