View Full Version : onUnload event

2 Jul 2007, 9:53 AM
Is there an Ext version of the onUnload event, that I can apply to the page so that if someone navigates away from the page or closes the browser that it fires an action? For whatever reason body onUnload doesn't seem to work. Thanks

2 Jul 2007, 12:00 PM
onBeforeUnload is the closest you'll get, I think.

2 Jul 2007, 12:07 PM
You could try window unload - see ddcore.js for an example. I'm not sure that this is reliable when closing the browser (in all cases)