'cols' Example : cols 3 « Javascript Properties « JavaScript Reference

'cols' Example

    
<html>
<body>
<textarea id="myText" rows="3" cols="15" onclick="ab();">
</textarea>
<br>
<button onclick="myText.cols=100;">Set width of Textarea to 100</button>
<button onclick="myText.rows=20;">Set height of Textarea to 20</button>
</body>
</html>

    
      
      








Related examples in the same category

1.'cols' Syntax and Note
2.'cols' is applied to