0
kicks
Use jQuery to standardize window.onbeforeunload across browsers
All modern browsers support the windows.onbeforeunload event. This event allows web application developers to warn users that they might abandon unsaved changes before they navigate away from a page.
There is a special case where Internet Explorer behaves differently from Fire Fox or Chrome