Save any content the user has submitted. Reload that content when they return to the page. Remove the warning when leaving the page.