Name
cols — NN n/a IE 4 DOM 1
Synopsis
Read/Write
The width of the editable space of the TEXTAREA
element. The value represents the number of monofont characters that
are to be displayed within the width. When the font size can be
influenced by style sheets, the actual width changes accordingly.
Example
document.forms[0].comments.cols = 60
Value
Any positive integer.
Default
Varies with browser and operating system.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.