HTML DOM rows ÊôÐÔ
¶¨ÒåºÍÓ÷¨
rows ÊôÐÔÉèÖûò·µ»Ø textarea µÄ¸ß¶È¡£
Óï·¨
textareaObject.rows=number_of rows
ʵÀý
±¾Àý¸Ä±ä textarea µÄ¸ß¶È£º
<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>