Previous Example-|-Next Example-|-Return to Chapter Listing

Example 16.4:
Passing Text From One Form to Another

Type something into the first form:

Now click on this button in the second form:
You'll see the text in the third form:


This is the script we used. In the HEAD... <SCRIPT LANGUAGE="JAVASCRIPT"> <!-- function Pass() { document.joe.elements[0].value = document.fred.elements[0].value } //--> </SCRIPT> Then these forms: <FORM NAME="fred"> <input type="text" size="30"><P> </FORM> <I>Now click on this button in the second form:</I> <FORM> <input type="button" value="Pass the Text" onclick="Pass()"> </FORM> <I>You'll see the text in the third form:</I> <FORM NAME="joe"> <input type="text" size="30"><P> </FORM>
Previous Example-|-Next Example-|-Return to Chapter Listing