2 <body style=
"overflow:hidden;">
3 <textarea id=
"ta" rows=
10 cols=
40>Sample text
</textarea>
5 var v
= document
.getElementById('ta');
6 var w
= v
.offsetWidth
; // Force a layout
7 v
.rows
+= 40; // Change the rows again.
8 w
= v
.offsetWidth
; // Force a layout again.