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