
Capturing the object that fires the OnBeforeUnload event of the window
Hi!! I hope everybody is doing ok. I'm developing an application and I need
that the user select the Logoff option from my Main Menu before leave the
application, so I'm trying to send a message when the OnBeforeUnload eventof
the window fires, letting the user now that the procedure to follow is
select the Logoff option from the Main Menu. My Problem is that this event
fires not only when that user select the close button of the browser or
enter a new URL, it fires even when the user is navigating in my application
an is requesting a new page. So I was trying to capture the object that
fires the OnBeforeUnload event with the window.event.srcelement, but I haven
't made it work in the way I want. If someone has an example of this, or
know where can I look for it, please let me know.
Thanks in advance for any help.
Marlene Arauz Martin
WDS