[Javascript] Can a reloaded parent window close its child?

BEKIM BACAJ trojani2000 at hotmail.com
Sat Dec 27 08:27:53 CST 2003


Obvious and not obvious sametime
All the pages wiewed on browser win are to be considered as 'clones' of the 
original generator.
So if one clone has a child, the other is not awear of it. Since a reloaded 
page is just another clone, the last child does not belong to him, because 
he is younger than this child and doesn't have any knowlledge of existance 
of his other clones nor his other relatives. Even if this child can be 
legaly proclaimed as a child of reloaded window, it isn't, a paradox that 
awaits our civilisation on horizon...

>From: Paul Novitski <javascriptlist at dandemutande.org>
>Reply-To: "[JavaScript List]" <javascript at LaTech.edu>
>To: "[JavaScript List]" <javascript at LaTech.edu>
>Subject: [Javascript] Can a reloaded parent window close its child?
>Date: Fri, 26 Dec 2003 23:41:01 -0800
>
>I want my browser window to create a child window that says "Please wait" 
>while the parent window is reloading.  Unfortunately, when the parent has 
>reloaded, it appears to have forgotten the identity of the child:
>
>body onLoad="jsCloseChild();" onUnLoad="jsCreateChild();"
>
>The close function fails when I use either of these two techniques for 
>creating and naming the child:
>
>=====================================
>function jsCreateChild(){
>	window.open('PleaseWaitChild.html', 'MyChild', '');
>}
>function jsCloseChild(){
>	MyChild.close;
>}
>=====================================
>var MyChild;
>function jsCreateChild(){
>	MyChild=window.open('PleaseWaitChild.html', 'WindowName', '');
>}
>function jsCloseChild(){
>	MyChild.close;
>}
>=====================================
>Can anyone provide a solution?
>
>Thanks,
>Paul
>
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail




More information about the Javascript mailing list