Form Copyer

This is just an easy sample, it will be improved after I've found out a way to simplize it.  You enter a address (just a demo, nothing serious) in the first box, when you click the mouse to other places, it will be copied to the second one (shipping address).  If you enter it at the second chart, it will also be copied into the first box (billing address).  I recommand you to use Script Rebuild Service to modify this page to fit your need if you don't know JavaScript.

Please enter your billing address:

Please enter your shipping address:


 

Cut and paste the source code of the above script here (Read  How to Cut N Paste for help)

<!-------------Cut------------>
<HTML>
<HEAD>
<TITLE>Form Copyer</TITLE>
<SCRIPT>
<!--
//    Script Editor:   Howard Chen
//    Browser Compatible for this script: IE 4.0 or Higher
//                                        Netscape 4.0 or Higher
//    Get more JavaScripts at http://www.geocities.com/SiliconValley/Network/7432/
//    Bug report to hchen007@geocities.com
//    This script is free as long as you keep its credits
function copyTo(i)
{
if (i==1) document.form1.text2.value = document.form1.text1.value  // Action 1 makes second box to be the same as the first one
if (i==2) document.form1.text1.value = document.form1.text2.value  // Action 2 makes first box to be the same as the second one
}

//-->
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="form1">
Please enter your billing address: <BR>
<TEXTAREA NAME="text1" ROWS=3 COLS=30 onChange="copyTo(1)"></TEXTAREA><P>
Please enter your shipping address: <BR>
<TEXTAREA NAME="text2" ROWS=3 COLS=30 onChange="copyTo(2)"></TEXTAREA>
</FORM>
</BODY>
</HTML>
<!------------End------------->
IMPORTANT: The scripts provided in this page are free as long as you keep the credits in the code.  E-mail me or use Script Rebuild Service for additional help about Cut N Paste or to ask for a script that is just for you.
Post Your Script Home