Reactive app beforeunload not working
Application Type

I  want to check if data is changed before page close or navigtion.

I used javascript to add "beforeUnload" method, but only worked on closing the browser's tab.

when page botton clicked or menu link clicked, page navigtioned, but "beforeUnload" method was not worked.

How can I catch the page navgation when button or link clicked, and stopped at needed?

By the way, I used reactive app!


Hello Yao,

You can try using the events on the web screens or web blocks as it is the reactive application.

For your particular requirement, I can suggest you t go with OnDestroy Event of the respective screen.

Hope this helps you!


Hi Nikhil

[On destroy] is worked, but how to stop the page close or navigation?



Can anyone give some help please?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.