Copy Form Data Between Frames

[Total: 0    Average: 0/5]

This example shows how to set up code to copy data between frames.

Body Code:

<BR>// for this example pretend that this form is defined 
<BR>// inside an html page call it one.html
<BR>// say we have an identical page called two.html
<BR>// lets have a frame page that defines two frames:
<BR>// one, and two
<BR>// when a checkbox in this file is checked it will
<BR>// copy its text box value into the other frame's
<BR>// form's textbox
function copyIt()
  var _form =;
<form name=one>
<input type="checkbox" name="c1" value="check me" onclick="copyIt()">
<input type=text name=t1 value="default">

Times Viewed: 3

Leave a Reply

Your email address will not be published. Required fields are marked *