HTML DOM rows Property
Complete Textarea Object Reference
Definition and Usage
The rows property sets or returns the height of a text
area.
Syntax
textareaObject.rows=number_of rows
|
Example
The following example changes the height of a text area:
<html>
<head>
<script type="text/javascript">
function changeRows()
{
document.getElementById('txt1').rows="15";
}
</script>
</head>
<body>
<textarea id="txt1">
Hello world....This is a text area
</textarea>
<br />
<input type="button" onclick="changeRows()" value="Change height" />
</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. |
|
|
|