DH
Programmer
- Dec 8, 2000
- 168
Here is my scenario:
Prior to form submission, If a user partially fills out a form and decides to visit another link they will loose the data they entered into the form.
I would like to warn a user via a popup/alert that if they leave the current form they will loose the information they have entered so far. I would like to have the popup or alert with 2 button on it. 1.) Okay/Leave Button (okay to leave the form and loose information) 2.)Cancel button (do not want to navigate away from the form. Clicking cancel will let the user finish filling out the form.
Does anyone have any examples of how I can accomplish this?
Thank you,
DH
Prior to form submission, If a user partially fills out a form and decides to visit another link they will loose the data they entered into the form.
I would like to warn a user via a popup/alert that if they leave the current form they will loose the information they have entered so far. I would like to have the popup or alert with 2 button on it. 1.) Okay/Leave Button (okay to leave the form and loose information) 2.)Cancel button (do not want to navigate away from the form. Clicking cancel will let the user finish filling out the form.
Does anyone have any examples of how I can accomplish this?
Thank you,
DH