HTML and CSS Reference
The text Object. The text object represents the HTML text field <input type=“text”>
the document tree, starting at the document , then to the form , and then the text element.
To get a value in the text field, for example, you would use the following syntax:
where form1 is the name of the form and textbox1 is the name of the text field. Shown in
properties and Table 11.10 lists its methods.
Table 11.9 Properties of the text Object
What It Describes
By default, pressing an access key sets focus to the text object. The
object receives focus when the user simultaneously presses the Alt key
and the access key assigned to an object.
Sets or returns alternate text to display if a browser does not support
The value assigned to the value attribute, and the default value the user
sees in the textbox when it first appears.
Sets or returns whether or not a text field should be disabled.
The name of the form where the textbox is defined.
Sets or returns the id of a text field.
The name used to reference the textbox.