Quantcast
Channel: Tutorials – Truelogic Blog
Viewing all articles
Browse latest Browse all 11

How to prevent a user leaving a page with unsaved data

$
0
0

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…


Viewing all articles
Browse latest Browse all 11

Trending Articles