Changes

Jump to: navigation, search

Building Forms with JavaScript

491 bytes added, 17:51, 15 May 2007
The JavaScript Text Object
</pre>
== The JavaScript Text and TextArea Object ==
Now that we have covered the basics of the JavaScript Form Object it is time to look at the objects we can place into the Form container to interact with the user. The most common of these objects is the ''Text'' object. The Text object places a single line text field into tyhe form into which the user can type information (such a name, address or telephone number).
 
The syntax for creating a text object withion a Form is as follows:
 
<input type="TEXT" name="''objectname''" value="''current value''" size="30">
 
* '''type''' - specifies that the type of object is a TEXT object.
 
* '''name''' - repesents the name by which this object may be reference in JavaScript.
 
* '''value''' - primes the text object with an initial value (optional).
 
* '''size''' - specifies the maximum number of characters that can be entered into the Text field.

Navigation menu