Click to See Complete Forum and Search --> : child window close
sivasankari
08-30-2003, 12:09 AM
Hai,
is there some property for a child window, so that it will get closed on closing a parent window or loading the parent window with some other page apart from using javascript codes like if (window.opener.closed), if so kindly let me know.
Thanks
Nevermore
08-30-2003, 02:23 AM
Sorry, I don't understand your question. I'm probably just having a stupid day. Could you rephrase it please?
Charles
08-30-2003, 06:41 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Script-Type" content="text/javascript">
<title>Example</title>
<body onunload="if (window.child && !window.child.closed) window.child.close()">
<div><a href="http://www.w3.org/" onclick="window.child = window.open(this.href, 'win', 'height=400,width=300'); return false">W3C</a></div>
sivasankari
08-30-2003, 07:24 AM
My question was, is there any property to set to the child window so that it will get closed automatically when the parent window is killed.