This version is old school.
Please find jQuery plugins on npm.
jQuery confirm on exit plugin
Ask user if he wants to quit a webpage with unsaved changes.
Versions
Version
Date
1.0.0
Aug 29, 2013