Export (0) Print
Expand All
all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

value property

Retrieves or sets the text in the entry field of the textArea element.

Syntax

JavaScript

p = object.value

 

Property values

Type: String

the text in the entry field of the element.

Standards information

Remarks

Setting this property replaces any existing text in the element.

Examples

In this example, when the user clicks the text area, the alert displays the value "This is the value of a textarea".


<textarea onclick="alert(this.value)">
This is the value of a textarea.
</textarea>

See also

textArea

 

 

Show:
© 2014 Microsoft