If a user is on a page with a form, and they have edited something, and then try and navigate to another page, how can I notify them?
How do people do this?
Is it a matter of computing a hash of all the input fields and comparing if they are exiting the page?
Is there a on page unload event?
I like to only prompt the user if they’ve actually changed something. Something like this: