How do I determine the number of lines of text that will fit into a browser window
<p>I want to display enough lines of text to fill the current size of the browser window. 
Also, I'd like to update the value if the browser window changes size. Does javascript have the equivalent of SIGWINCH?</p>

<p>Thanks</p>
