M
markalroberts
Hi,
I wish to ask warn the user that there are unsaved changes (if there
are) and allow them to cancel navigating away/closing the browser.
Investigation leads me to believe the "OnBeforeUnload" event is the
best bet - this does as I wish... Except it doesn't distinguish between
hyperlinks within the site and hyperlinks outside it.
I.e. simple Hyperlink button will raise the Unload event when clicked,
as will closing the window, but I'm only interested in the Closing
window one, and there doesn't appear to be any way to tell them apart.
If someone could help here, it would be very useful!
Thanks,
Mark.
I wish to ask warn the user that there are unsaved changes (if there
are) and allow them to cancel navigating away/closing the browser.
Investigation leads me to believe the "OnBeforeUnload" event is the
best bet - this does as I wish... Except it doesn't distinguish between
hyperlinks within the site and hyperlinks outside it.
I.e. simple Hyperlink button will raise the Unload event when clicked,
as will closing the window, but I'm only interested in the Closing
window one, and there doesn't appear to be any way to tell them apart.
If someone could help here, it would be very useful!
Thanks,
Mark.