W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2009

Re: Proposal: Detecting when the user leaves a page due to hitting the back button or typing in a URL or going to a favorite

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 06 Jan 2009 12:49:41 -0500
Message-ID: <496399B5.1080809@mit.edu>
To: "Shropshire, Andrew A" <shropshire@att.com>, public-webapps <public-webapps@w3.org>

Shropshire, Andrew A wrote:
> One could simply deprecate the onunload  (but still support it) and 
> create a new version onDestroy that is called as well.  Old apps wonít 
> know about onDestroy so it will be harmless and wonít break them.  New 
> apps simply donít need to implement onunload and will use onDestroy.  If 
> you change onbeforeunload you will have compatibility issues with all 
> those pages that use it now.

Adding properties to the onunload event is probably pretty safe.

Received on Tuesday, 6 January 2009 17:50:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:12:50 UTC