Retrieves or sets the text in the entry field of the textarea element.
dhtml语法
html | n/a |
---|
scripting | textarea.value [ = svalue ] |
---|
dhtml可能的值
sValue | String that
specifies or receives the text in the entry field of the element. |
The property is read/write.
The property has no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.
remarks
setting this property replaces any existing text in the element.
DHTML代码范例
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>
是否符合公共标准
This property is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To