
Textarea
120
|
JavaScript Pocket Reference
Methods
appendData(text)
Appends the specified text to this node and returns nothing.
deleteData(offset, count)
Deletes text from this node, starting with the character at the
specified
offset, and continuing for count characters. Returns
nothing.
insertData(offset, text)
Inserts the specified text into this node at the specified char-
acter
offset. Returns nothing.
replaceData(offset, count, text)
Replaces the characters starting at the specified offset and
continuing for
count characters with the specified text.
Returns nothing.
splitText(offset)
Splits this Text node into two at the specified character posi-
tion, inserts the new Text node into the document after the
original, and returns the new node.
substringData(offset, count)
Returns a string that consists of the count characters starting
with the character at position
offset.
See Also
Node.normalize()
Textarea
multiline text input
Client-side JavaScript 1.0
Inherits From: Element
Synopsis
form.elements[i]
form.elements[name]
form.name
Description
The Textarea object is very similar to the Input object.