Solved!

It was the bloody Google toolbar blocking the event as it decided it was
attempting to load a popup. How cretinous!

Sorry for the false request.

Mike

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Mike Pepper
Sent: 20 January 2005 20:00
To: wsg@webstandardsgroup.org
Subject: [WSG] window.onunload Event Not Firing in IE


I've been battling with this for the best part of 4 hours and it's doing my
head in.

I'm using a cookie to store various accessibility user preferences such as
(alternate) stylesheet, font size and font alignment in
http://www.seowebsitepromotion.com/

I want to record the user's preferences in the cookie when they close a
browser session (or make changes within a session and navigate elsewhere -
which functions correctly).

This works fine in Firefox but Win2K Pro IE6 (untested in other flavours)
refuses to acknowledge the onunload event when closing the browser window.
It does, however, recognise page to page movement and fires the unload event
(as it should) just before the next page is loaded (and perhaps herein lies
a clue, though I'm damned if I can find it).

What this means is users cannot make a preference change, immediately exit
IE and have it stored in the cookie. They must first navigate to another
page (or site) for the event to be fired and the cookie written.

Anybody have any resolutions to this (stupid) behaviour? I've Googled for a
while and can find no pertinent reference.

Cheers in advance.

Mike Pepper
Accessible Web Developer
Internet SEO and Marketing Analyst
[EMAIL PROTECTED]
http://www.visidigm.com

Administrator
Guild of Accessible Web Designers
[EMAIL PROTECTED]
http://www.gawds.org

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or body to whom they are addressed.
This footnote also confirms that this email message has been swept by Norton
AntiVirus for the presence of computer viruses. If this message is received
in error, please accept our apologies.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.0 - Release Date: 17/01/05

******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.0 - Release Date: 17/01/05

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.0 - Release Date: 17/01/05

******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to