function scrollToBottom(el) {<br>&nbsp;&nbsp;&nbsp; el.scrollTop=el.scrollHeight; <br>}<br><br>will make the textarea jump to the last line - could probably do with more work and only tested in FF2 win<br>but hopefully will set you on the right track.
<br><br>cheers<br><br><br><br><div><span class="gmail_quote">On 10/30/06, <b class="gmail_sendername">John Warner</b> &lt;<a href="mailto:john@jwarner.com">john@jwarner.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is there a way to scroll a textarea using Javascript, what I want to do<br>is scroll the text without the user taking action with the mouse. Say I<br>have a text area sized to show say 5 lines of text but actually contains
<br>say 25 lines of text, can I either style or using JS cause the text area<br>to scroll to the bottom? Any ideas on how?<br><br>Thanks<br><br>John Warner<br><br><br>_______________________________________________<br>Javascript mailing list
<br><a href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</a><br><a href="https://lists.LaTech.edu/mailman/listinfo/javascript">https://lists.LaTech.edu/mailman/listinfo/javascript</a><br></blockquote></div><br>