[thelist] javascript closing pop up windows

Scarlett Julian (ED) Julian.Scarlett at sheffield.gov.uk
Fri Apr 26 09:33:01 CDT 2002


Chris

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

yes the link is something like <a href="blah" target="_blank">blah</a> and
then the page is closed with window.close().

Is there a better way of doing it?

J.

> -----Original Message-----
> From: Chris Blessing [mailto:webguy at mail.rit.edu]
> Sent: Friday, April 26, 2002 3:32 PM
> To: thelist at lists.evolt.org
> Subject: RE: [thelist] javascript closing pop up windows
>
>
> 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
> >
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !
>
The information in this email is confidential. The contents may not be disclosed or used by anyone other than the addressee.  If you are not the addressee, please tell us by using the reply facility in your email software as soon as possible. Sheffield City Council cannot accept any responsibility for the accuracy or completeness of this message as it has been transmitted over a public network.  If you suspect that the message may have been intercepted or amended please tell us as soon as possible.




More information about the thelist mailing list