Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:

Pre-Fill Forms From Last Use

By Will Bontrager
2005-04-18


The JavaScript code of the HEAD Area

The JavaScript code of the HEAD Area

This JavaScript needs to be customized in three places:

1. Specify a name for the cookie. The name needs to be something no other cookie on your web site uses. Otherwise, the cookies could overwrite each other.

2. Specify how many days the cookie shall exist on the visitor's computer.

3. If your separate forms have different field names for the same information, you specify those here. This allows fields with different names to pre-fill the information.

The example page demonstrates the above.

Tutorial Pages:
» Pre-Fill Forms From Last Use
» Why?
» The Source Code
» The JavaScript code of the HEAD Area
» The Form's ACTION Tag
» The JavaScript Below the Form
» A Limitation
» Conclusion


Copyright 2004 Bontrager Connection, LLC


 | Bookmark
Related Tutorials:
» JavaScript Debugging Techniques with Firebug
» Striped Tables Using JavaScript
» Opening PDFs in a New Window with JavaScript
» Essential Javascript -- A Javascript Tutorial
» Submit Forms Conditionally using JavaScript
» How to Setup a Randomising Function

Ask A Question
characters left.