djangosnippets.org: Latest snippets posted by mrazzarihttps://djangosnippets.org/users/mrazzari/2009-07-16T14:01:35.517012-05:00mrazzariConfirm alert if the user navigates away without saving changes
2009-07-16T14:01:35.517012-05:00mrazzarihttps://djangosnippets.org/snippets/1636/<p>A confirm alert is displayed if the user has made any changes to the form, and attempts to navigate away from the page without saving (click the back button, hit reload, click the breadcrumbs, logout, etc). Much like GMail's "Your message has not been sent. Discard your message?" prompt. </p>
<p><strong>Uses …</strong></p>
Freely redistributable