I would like to prompt the user to confirm if they try to navigate away from the page displaying a document in WebViewer (or they try to close the browser, or refresh the page), but I only want to prompt them if they have any unsaved Annotations.
Does the WebViewer provide any functionality for prompting the user to save annotations before leaving the page?
If not, can I know the event in which I can show a prompt to the user.
Hi,
I tried the above code sample but the beforeunload event is not triggered when I close the page or refresh the page.
Is there any other alternative for the same.
Thanks
Priya