Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
value (TextArea element)
all
alt
ch
dir
id
min
rel
top
url
URL
urn
Collapse the table of content
Expand the table of content

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:
© 2015 Microsoft