cancel
Showing results for 
Search instead for 
Did you mean: 

How to catch browser events to do validations

Former Member
0 Kudos

Hi,

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.

Regards,

Koti Reddy

Accepted Solutions (1)

Accepted Solutions (1)

Qualiture
Active Contributor
0 Kudos

That is standard Javascript functionality -- the window.onbeforeunload hook -- which even made it's way to the core Component

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

Former Member
0 Kudos

Thank you for reply. As of now I didn't  try this but it is really valuable info.

Regards,

Koti Reddy

Answers (0)