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.