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 Form's ACTION Tag

The form's ACTION tag needs to have:

1.A name="formname" attribute. Change "formname" to any name for the form that makes sense to you.

2. An onSubmit="RememberFormFields('formname','_____');" attribute.

Replace formname with the name you gave the form.

Replace _____ with a list of this form's fields that you want the browser to remember so it can pre-fill those fields in this and other forms. The form field names are separated with a comma, like

fieldname1,fieldname2,fieldname3
The demonstration page has examples.

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