Garlic.js allows you to automatically persist your forms' text field values locally, until the form is submitted.
JavaScript Libraries and Functions