HTML DOM value Property
Complete Textarea Object Reference
Definition and Usage
The value property sets or returns the text of a text area.
Syntax
textareaObject.value=text
|
Example
The following example returns the text of a text area element:
<html>
<head>
<script type="text/javascript">
function alertValue()
{
alert(document.getElementById('txt1').value);
}
</script>
</head>
<body>
<textarea id="txt1">
Hello world....This is a text area
</textarea>
<br />
<input type="button" onclick="alertValue()"
value="Alert value" />
</body>
</html>
|
Complete Textarea Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|