Brian is correct, have your application implement Window.ClosingHandler
and/or Window.CloseHandler in order to do any clean up work when the user
navigates away from your site.
Keep in mind that:1. These events are called when the user closes the
browser or tab as well as when the user navigates
Thanks your answers.
I now have another question... The code below displays a confirmation
to leave the page with button ok (the close action completes) and
cancel (stop the close event). How do I know which button the user
actually clicked on? Is there a way to assign a callback function to
Maybe Window.addWindowClosingHandler or Window.addCloseHandler
On Oct 7, 11:35 am, francescoNemesi nem...@yahoo.com wrote:
Hi,
is there a way to listen to a browser window or unload event? I want
to force a logout (to clean up session memory on the server as well as
much as I can on the