You need to sign in to do that
Don't have an account?
James Jensen
How to force confirmation warning before closing lightning community window
I have a Lightning Community that I would like to prevent the user from closing the window without first confirming they will lose any unsaved data.
May I suggest You Please refer the below link for reference.
- https://developer.salesforce.com/forums/?id=906F000000099TBIAY
- https://www.sencha.com/forum/showthread.php?291914-Need-a-confirmation-message-before-closing-the-window
Let us know if it helps.Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.
Thanks
Rahul Kumar