You can do that if you opened the parent with javascript. However, any time
you try to close the original window with js, it will complain

-----Original Message-----
From: Jann VanOver [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 09, 2003 1:09 PM
To: CF-Talk
Subject: Re: window.close question?


On 3/7/03 10:30 AM, "James Blaha" <[EMAIL PROTECTED]> wrote:

> Hello All:
>
> JavaScript Question
>
> I need to have JavaScript code work for Netscape 4.7 to open a child
> window and close the parent and bypass the confirm message. [snip]

You should not be able to do this unless you are in a secure, signed,
scripting environment.  Period.

What you are asking invades the user's privacy.  When you close the parent,
you lose all their page history information -- this is why the confirmation
message appears.  The confirmation message will always appear if you
programmatically try to close a window that the user opened.

I am a bit shocked that the code you give doesn't launch a confirmation
message in IE and Netscape 6-7.  You must have your user privacy settings
lower in those browsers.




> Can someone
> please send me an example?
>
> This code works in IE and Netscape 6-7 but not Netscape 4.7
>
> <!--- <SCRIPT LANGUAGE = JavaScript>
>
> {
>
> newwin=window.open("Login.cfm","_blank","......." )
> firstwindow = window.self;
> firstwindow.opener = window.self;
>
> firstwindow.close();
> newwin.focus()
>
> }
> </SCRIPT> --->
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to