Mega Code Archive

 
Categories / JavaScript DHTML / Form Control
 

Methods and Properties of the Text Object

Method blur()            Removes the focus from the text box. focus()           Gives the focus to the text box. handleEvent()     Invokes the default handler for the specified event. select()          Selects the text in the text box.  Property defaultValue      Returns the value of this text box, specified by the value attribute.  form              Returns the entire form the text box is in. name              Returns the name, specified by the name attribute. type              Returns the type specified by the type attribute. value             Returns the value that is actually displayed in the text box.