Is there an event to handle the moment before leaving the page?

I want to be able to warn users who want to abandon some of the forms in my project that have unsaved changes how I can accomplish this.

The postponing navigation transition example may be what you are looking for

yes I already read but there is no example of how to do it :frowning:

This may also help