Article View: microsoft.public.inetsdk.programming.scripting.jscript
Article #32Re: Does "onwindowclose.event" exist?
From: Ben Carter
Date: Wed, 20 Oct 1999 00:00
Date: Wed, 20 Oct 1999 00:00
29 lines
2047 bytes
2047 bytes
I don't believe onunload() is reliable enough, it won't be able to load a page before it actually unloads. In IE there is the event onbeforeunload(), which is what you want. Unfortunately, this has no equivalent in NS. Rafael Rasinger wrote: > > Dear reader! > > I am looking for an "onwindowclose" event in JS. > > Saying: If a user wants to close the Browser window a JS function is > launched (in my case a loggout page is loaded) before the browser is closed. > Is there a posibility of performing this feature (in NN and MSIE)? > > Thanx for ur help, Rafael -- //////////////////O\\\\\\\\\\\\\\\\\\ //// \\\\ /// Ben S. Carter, \\\ // Web Application Developer, \\ / Bluewater Parklands Mgmt. Inc. \ > Guelph, ON, N1H 3G3 < \ 519-766-0901 Ext. 226 / \\ ben@camis.com // \\\ webmaster@camis.com /// \\\\ //// \\\\\\\\\\\\\\\\\\O//////////////////
Technical Details
Message-ID:
<380DE26E.C264F3BF@camis.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<380d7254@news.kapsch.co.at>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4a5,5cb9f8b118bebff7 X-Google-Attributes: gid10d4a5,public X-Google-Thread: 10731d,5cb9f8b118bebff7 X-Google-Attributes: gid10731d,public X-Google-Thread: fb3cb,5cb9f8b118bebff7 X-Google-Attributes: gidfb3cb,public X-Google-Thread: fcc66,5cb9f8b118bebff7 X-Google-Attributes: gidfcc66,public X-Google-Thread: 10c71c,5cb9f8b118bebff7 X-Google-Attributes: gid10c71c,public From: Ben Carter <ben@camis.com> Subject: Re: Does "onwindowclose.event" exist? Date: 1999/10/20 Message-ID: <380DE26E.C264F3BF@camis.com> X-Deja-AN: 538460061 Content-Transfer-Encoding: 7bit References: <380d7254@news.kapsch.co.at> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Bluewater Parklands Management MIME-Version: 1.0 Reply-To: ben@camis.com Newsgroups: microsoft.public.inetsdk.programming.scripting.jscript,microsoft.public.scripting.jscript,borland.public.intrabuilder.javascript,comp.lang.javascript,de.comp.lang.javascript