[thelist] javascript closing pop up windows

Chris Blessing webguy at mail.rit.edu
Fri Apr 26 09:28:01 CDT 2002


Julian-

Unless the window was opened via Javascript within that browser session, the
user will be prompted (as you were) to see if they really want the window to
close.

This is a slight security measure on behalf of the web browser, as any web
page could close your popup window without you knowing what happened
otherwise.

I assume you're using something like <A TARGET...> to open the window and
then you try to close it with JS right?

Chris Blessing
webguy at mail.rit.edu
http://www.330i.net

> Hi all
>
> I'm experimenting with using pop up windows and having
> javascript:window.close() to shut them down. However when I try
> to shut them
> down I get a dialogue box from the browser saying that the web page I am
> viewing is trying to close the window and do I want to conntinue. Can
> anybody tell me what's going on? I'm using IE5.5 andIE4 on Win 2K
> and Win98
> respectively.
>
> Julian Scarlett
>




More information about the thelist mailing list