Alternative when disabling the back button in any browser
2 answers
Check out sisyphus.js . it is exactly for this purpose. It adds automatic save GMail style (client side) to any HTML form. Add this JavaScript line to the form page you want to save:
$('form').sisyphus();
When the user fills out this form, the library will automatically save whatever they type locally. If they leave the page (or browser crashes, simply returning to the same page will automatically fill in the form with all their data). Once they successfully submit the form, sisyphus.js will clear the locally cached input.
There is an alternative to Sisyphus that I haven't tried yet but called Garlic.js , which is said to have better support for older browsers.
+3
source to share