I have a page where the user will edit fields that are in a form. This data comes from the database. The user can edit them, however, in the end he can write (that is, he will write / do update in the database) or he can close.
I want to make sure that if the user clicks on another menu link or clicks back, the user is prompted to leave the page without pressing the save changes button