An Abbreviated Introduction to JavaScript


Filling in Fields

A simple illustration of using JavaScript to fill in fields.


<form name="sample">
<input type="text" 
       name="info" 
       value="Who knows what evil lurks in the hearts of men?" 
       size=80> 
<br>
<input type="button" 
       name="clickme" 
       value="Click Me"
       onClick="document.sample.info.value='The Shadow Knows'">
</form>

Source text written by Samuel A. Rebelsky.

This page may be found at http://www.math.grin.edu/~rebelsky/Tutorials/JavaScript/Spring1999/Examples/fillfield.html

Source text last modified Mon Apr 12 12:32:27 1999.

This page generated on Mon Apr 12 12:39:02 1999 by SiteWeaver. Validate this page's HTML.