3
I have a tab 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 (ie will write/update in the database) or else he can close.
I want to make sure that the user, if they make a mistake and click another menu link, or click back the page is asked if they want to leave the page without pressing the save button?
I didn’t understand the part about putting onclick in the html tag attribute.... I have to put this in all links? : S
– Luís Almeida
yes, something like this: <a href="index.html" onclick="confirm('index.html')">Index</a>
– Hugo Leonardo