How to catch browser events to do validations
How to catch browser events to do validations especially when user try to close browser directly without cancelling upload using some button or some other file saving functionality.
need to clear uploaded files or earlier steps related data whenever user tries to close browser.
Please share recommendation to deal this browser close approach.
Robin van het Hof replied
Message was edited by: Robin van het Hof Made a typo, should of course be window.onbeforeunload, not window.unload... The former allows to show a popup, the latter only allows for cleanup etc, and is not really suited for validation