Save and Restore Form Cookies

By Tony Davis on Feb 3, 2006


This script will save all of your form fields in a cookie. It includes all text fields, radio button selections, checkbox values, etc. When your visitor returns, all form fields are automatically repopulated with the same value that they entered on their last visit.


  • Created by: Tony Davis
  • Web Site:
  • Posted: February 03, 2006

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: saveRestoreForm.js


Paste this code into the HEAD section of your HTML document.