★ wanayoo — archive 1999 http://javascript.internet.com/forms/copy-fields.htmlNouvelle recherche | Portail wanayoo

All Net Research -- in one place When you're ready to play with the big boys


Home } Forms } Copy Fields



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.
Name:
User ID:

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!!!


Did you use this script?  Do you like this site?  Please link to us!
Play the Market--win real cash!

Sign up for the JavaScript Source's Newsletters!
Site Updates!
Monthly Digest
Your Email:


We'll send this script to you!

(just click "Send it!" once!)

[ Contact Us! ]
[ JavaScript Forum ]

The JavaScript Source

Copyright 1999 Internet.com Corp.
All Rights Reserved. Legal Notices

Privacy Information
Advertising Information