Finding the visible height of a textarea
<p>I'm trying to find the visible height of a textarea (i.e. the number of lines that are currently visible to the user).I have the textarea height and width setting using the following CSS:</p>

<pre><code>textarea
{
height:90%;
width:90%;
}
</code></pre>

<p>When I attempt to find the rows attribute it returns the value 2, which is not correct. I have  tried a variety of other ways, such as offsetHeight, etc. but havn't had much luck. Can anybody make any recommendations on how to do this or point me in the right direction on how to do this?</p>
