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

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.

-Boris

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