Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to stop user changing pages without saving

Status
Not open for further replies.

dazza12345

Programmer
Nov 25, 2005
35
GB
Hi, I would like your opinion on the following matter:

What would be the best way of stopping a user from changing pages without saving all the details within that page first?

Im thinking of having a confomation box to ask the user if they want to swap pages without saving, but not exactly sure how to go about checking to see if all the details entered have been saved
 
You'll have to use JavaScript. Check all the form variables when the page loads and then see if any of them have changed before they leave. It's not 100% accurate though and I wouldn't rely on it.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top