one often opens a small HTML document to make it big ;-) - say to
replace the default template with her own code. By shrinking the
default textarea you are complicating the future editing. It is also
silly to ask before page load "are you making a few changes in this
puny text or it's gonna get big?" or something. So I would serve some
default "fit-the-most" textarea, say cols="72" rows="16", and maybe I
would provide a "maximize" button in the menu to make the textarea as
big as possible.
In either case you are manipulating .cols and .rows property of
textarea to change its size after the page finished loading, like
<form method="post" action="">
<textarea name="HTMLSource" cols="72" rows="16"></textarea>
<input type="button" value="Extent" onclick="
this.form.HTMLSource.rows = 20;
">
</form>
Let me further explain it.
I provide a textarea (say this textarea within a table tag)to content
designer. she/he can type anything she/he wants and return back it to
my html builder and it automatic create a standard html page and
upload it to any viewers using IE.
I do not give any button to IE viewers to change this page.
just let them to view it.
Since i can not predict content desinger how many line she/he
write to this textarea for every time. the worst case is that content
designer maybe write only one line. the rows i set is rows=10. so
viewers may see this page not pretty. (for example next day this page
may updated because content designer change content to seven lines.)
My html builder is automatic tool. not need manual chang it. That is
why I need to assign a var to rows attribute. or you may have diff
solutions.
Thanks a lot!
st