I have a large form that needs to prompt the user to save before leaving the page, if they have edited any of the fields inside it.
Here is what I have thus far, and would like to keep it in the same format if possible:
confirm('Changes have been made to this page. Do you wish to save them?');
Basically, I just want to determine what inputs and selects have been changed since the page loaded, and have the logic for this in the IF statement, if that makes sense.
Thanks in advance.