Re: FN-FORUM: Javascript
date posted 15th August 2005 12:16
Gareth Nicholas wrote:
>Hi all,
>
>Please help, I have serious brain fade this morning due to the enormous
>amount of alcohol consumed after yesterdays football.
>
>I need to close two wndows, the child and the parent, how....
>
>
>Please help
>
>Many thanks
>
>Gareth
>
>
>
>
Gareth,
if (window.opener && !window.opener.closed) window.opener.close();
window.close();
The above snippet works for IE, but only closes the child window in
Firefox (don't know if that's because of my security settings, have to
check that). Hope it's some help!
Regards,
Paul
Archbrand Ltd.