Actually, you CAN do this without needing to change security settings.
Just change the window opener's reference to TOP and then you can close
it.
<script>
window.open('popup.html','popWin','width=300,height=300');
window.opener=top;
window.close();
</script>
This doesn't work on IE5 or Netscape 4.7x but it works on all other
IE/NS variations.
I saw this link earlier today while looking for some ActionScript
reference.
http://aspalliance.com/peterbrunone/impossible.asp
HTH
Joshua Miller
Head Programmer / IT Manager
Garrison Enterprises Inc.
www.garrisonenterprises.net
[EMAIL PROTECTED]
(704) 569-9044 ext. 254
************************************************************************
*************
Any views expressed in this message are those of the individual sender,
except where the sender states them to be the views of
Garrison Enterprises Inc.
This e-mail is intended only for the individual or entity to which it is
addressed and contains information that is private and confidential. If
you are not the intended recipient you are hereby notified that any
dissemination, distribution or copying is strictly prohibited. If you
have received this e-mail in error please delete it immediately and
advise us by return e-mail to [EMAIL PROTECTED]
************************************************************************
*************
-----Original Message-----
From: Jann VanOver [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 7:18 PM
To: CF-Talk
Subject: Javascript Signed Scripting Re: window.close question?
Mozilla has a write up on signed javascripting:
http://www.mozilla.org/projects/security/components/signed-scripts.html
There's an old (Netscape 4.0) article here:
http://polaris.umuc.edu/~mgaylor/SignedScripts.html
And some Netscape/Gekko notes at
http://devedge.netscape.com/central/security/ AND
http://devedge.netscape.com/viewsource/2002/bypassing-security-restricti
ons/
On 3/9/03 1:48 PM, "James Blaha" <[EMAIL PROTECTED]> wrote:
> Jeff, Jann & Critz,
>
> Thank you all very much for your input and time. I�m working on an
> intranet application so I�m not worried about security for the user�s
> browser. Jann do you know how this would be done in a secure, signed,
> scripting environment? If you do can you please email me an example if
> you have one handy otherwise I found a work around for my issue so I
> can put an end to this thread.
>
> Thanks again!
>
> Regards,
> James Blaha
>
>
> Jann VanOver wrote:
> On 3/7/03 10:30 AM, "James Blaha" <[EMAIL PROTECTED]>
> <mailto:[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
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4