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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving page contents before leaving page

Status
Not open for further replies.

jsnider

Programmer
Jan 16, 2002
7
US
I am building a WYSIWYG HTML editor. I would like to know how to propmt the user to save changes if they haven't already before leaving the page (back button, exiting browser, etc...) Any code samples would be great.

Thanks
 
Use the onUnload option of the body tag to call a function to do it. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top