I have a simple html form with few fields in it.
I wanted to make sure that user gets an alert message when he is trying to leave the page. So I added the script on
Try this: