I used to think that the situation you want to happen was impossible
until I found this link:

http://aspalliance.com/peterbrunone/impossible.asp


Matt Small


-----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
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

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

Reply via email to