HTML and CSS Reference
In-Depth Information
Table 11.13 Properties of the textarea Object
Property
What It Describes
accessKey
Sets or returns the keyboard key to access a textarea .
cols
Sets or returns the width of a textarea .
defaultValue
The value assigned to the value attribute, and the default value the user
sees in the text area when it first appears.
disabled
Sets or returns whether or not a textarea should be disabled.
form
The name of the form where the text area is defined.
id
Sets or returns the id of a textarea .
name
The name used to reference the text area.
readOnly
Sets or returns whether or not a textarea should be read-only.
rows
Sets or returns the height of a textarea .
tabIndex
Sets or returns the tab order for the textarea .
type
The type of the input device; i.e., textarea.
value
The value attribute that will be assigned whatever the user types in the
text area.
Table 11.14 Methods of the textarea Object
Method
What It Describes
blur()
Removes focus from the text area box.
focus()
Puts focus on the text area box.
handleEvent()
Invokes the handler for a specified event (JavaScript 1.2).
select()
Selects or highlights text in the text area box.
unwatch()
Turns off the watch for a particular property.
watch()
Watches, and when a property is changed, calls a function.
 
Search WWH ::




Custom Search