RE: Close Window JavaScript

by "tim booker" <timbooker(at)btinternet.com>

 Date:  Tue, 13 Mar 2001 21:58:36 -0000
 To:  "'Mike Taylor'" <lonewolf(at)one.net>
 Cc:  "HWG \(E-mail\)" <hwg-techniques(at)hwg.org>
 In-Reply-To:  one
  todo: View Thread, Original
Well, yes and no.  It's impossible to make the current window turn into a
featureless pop-up or a "kiosk" mode window.  That requires opening a new
window.  That's why most of them use a pop while, typically, the splash page
remains loaded in the background.

Tim



www.timbooker.com




> -----Original Message-----
> From: Mike Taylor [mailto:lonewolf(at)one.net]
> Sent: 13 March 2001 18:35
> To: tim booker
> Cc: Blue; hwg-techniques(at)hwg.org
> Subject: Re: Close Window JavaScript
>
>
> Guess that explains why all those new-wave, (especially
> FLASH-laden) sites
> start up with one window that seemingly does absolutely nothing while
> another window pops up to fill the screen..it's all so that the
> "exit" button they put on their site doesn't generate a "do
> you want to
> close this window?" dialogue.
>
> Mike
>
> On Tue, 13 Mar 2001, tim booker wrote:
>
> > Hello,
> >
> > You will always get this alert box when you are trying to
> close the main
> > browser window.  It's a security feature which you can't avoid.
> >
> > The windows that don't give you this alert are ones which
> you have opened,
> > either with a target="_blank" or a window.open().
> >
> > It's nothing to do with which page you are viewing, it's
> all about how the
> > window was opened originally.
> >
> > Tim
> >
> >
> > www.timbooker.com
> >
> >
> >
> > ----- Original Message -----
> > From: "Blue" <blue(at)bluesarthouse.com>
> > To: <hwg-techniques(at)hwg.org>
> > Sent: Tuesday, March 13, 2001 3:32 PM
> > Subject: Close Window JavaScript
> >
> >
> > Hi all:
> > I'm using a javascript command to close a popup window on
> many pages in a
> > few of my sites.  In IE5, on some pages, when the close
> window link is
> > clicked, an alert box with the message "The web page you
> are viewing is
> > trying to close this window.  Do you want to close this
> window?" Then the
> > visitor must click yes or no.  On other pages with the same
> script, the
> > alert box does not appear.  Obviously I would rather not
> ever have the alert
> > box. (Doesn't seem to be a problem in NN)
> >
> > Here's a page that gives me the alert box; go to
> > http://www.bluesarthouse.com/companylogo.htm , click on a
> logo design to get
> > the pop up box and then click on 'gallery' to close the box.
> >
> > I get no alert box on this page; go to
> > http://www.stickboyandcrazygirl.com/picgallery.htm (it
> might load slowly),
> > click on a pic for the pop up and then click 'back to gallery.'
> >
> > I would also appreciate feedback about browsers & versions
> and who is
> > getting alert boxes.
> >
> > TIA!
> > Blue Tapp
> > Blue's ArtHouse Graphics & Web Design
> > blue(at)bluesarthouse.com
> > www.bluesarthouse.com
> > phone: (314) 839-0634
> > fax & voice mail: (314) 839-1557
> > Over a decade of professional computer graphics,
> > website development, internet research, marketing & hosting
> >
> >
> >
> >
>
>
>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA