Hi,
I would like to detect the closing of the page, I don't know how to intercept this action?
I use the "onBeforeUnload" event, but it only works when we refresh the page
Thanks for your help.
Hi,
I would like to detect the closing of the page, I don't know how to intercept this action?
I use the "onBeforeUnload" event, but it only works when we refresh the page
Thanks for your help.
See also:
Thanks,
I use Chrome from a pc or a Android tablet, I have the same behavior with Edge.
Ok, I will have to add JavaScript code directly?
Form.OnBeforeUnload is triggered by the JavaScript onbeforeunload event. So, if OnBeforeUnload is not triggered, I expect JavaScript onbeforeunload not to be triggered. So, it must be found out why. Is there prior interaction with your page?
Sorry I don't undersatand "Is there prior interaction with your page?" Indeed users interact on the page before leaving the tab or explorer. They identify themselves, consult or modify data on this same page.
If the user interacted and you do not get this event, then something else must be wrong. Did you first test this separately in a simple new app and compared with your current app?
Sorry for the late response !
No I didn't, I'm going to create a new blank project and do some tests.
I keep you informed,
Thanks for your help
I've started using this and it works well when the browser, or tab, is closed. You have to be careful if using Sphinx as that unloads the page, so you need to stop any cleanup code running for that process.