Is it possible to prevent the browser from throwing an error message when closing a page that has data entered on a form? I have a basic javascript form that does some calculations as you enter numbers. When you try to close the tab you get:
You have entered text on “TITLE”. If you close the tab, your changes will be lost. Do you want to close the tab anyway?
I'm looking for a way to prevent this from happening since it's not needed for this form. It seems that this is the opposite behavior that most people would want.