jquery.AreYouSure

A light-weight jQuery "dirty forms" Plugin - it monitors HTML forms and alerts users to unsaved changes if they attempt to close the browser or navigate away from the page. (Are you sure?)

dirtyformonbeforeunloadsavecheck

https://github.com/codedance/jquery.AreYouSure