Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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. All rights reserved.