A lot of good websites provide a failsafe check that a user might accidentally leave a page with unsaved data. This is a good thing to have, specially in forms which are long or important. It can be done easily using jQuery and javascript. It consists of hooking the window.onbeforeunload() event and putting a check…
↧