| ★ wanayoo — archive 1999 http://javascript.internet.com/forms/copy-fields.html | Nouvelle recherche | Portail wanayoo |
|
|
|
Allows the user to enter their name in the first field and have copies it to the second field for use as the User ID. It occurs instantly when they click the next field or the submit button. And, if the user tries to modify the second field, it is changed back to the value of the name field. Definitely a good example of the onChange() event handler in use. |
| The JavaScript Source: Forms: Copy Fields
Simply click inside the window below, use your cursor to hilight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!
|
|
|
[ Contact Us! ] [ JavaScript Forum ] The JavaScript Source
Copyright 1999 Internet.com Corp.
Privacy Information
|