Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Scroll a multiline textarea
- From: john at jwarner.com (John Warner)
- Subject: [Javascript] Scroll a multiline textarea
- Date: Mon Oct 30 08:34:17 2006
Thanks, that's what I needed was a good start on the problem. John Warner -----Original Message----- From: javascript-bounces@xxxxxxxxxx [mailto:javascript-bounces@xxxxxxxxxx] On Behalf Of Aaron Bassett Sent: Monday, October 30, 2006 8:44 AM To: [JavaScript List] Subject: Re: [Javascript] Scroll a multiline textarea function scrollToBottom(el) { el.scrollTop=el.scrollHeight; } will make the textarea jump to the last line - could probably do with more work and only tested in FF2 win but hopefully will set you on the right track. cheers On 10/30/06, John Warner <john@xxxxxxxxxxx> wrote: Is there a way to scroll a textarea using Javascript, what I want to do is scroll the text without the user taking action with the mouse. Say I have a text area sized to show say 5 lines of text but actually contains say 25 lines of text, can I either style or using JS cause the text area to scroll to the bottom? Any ideas on how? Thanks John Warner _______________________________________________ Javascript mailing list Javascript@xxxxxxxxxx https://lists.LaTech.edu/mailman/listinfo/javascript
- References:
- [Javascript] Scroll a multiline textarea
- From: Aaron Bassett
- [Javascript] Scroll a multiline textarea
- Prev by Date: [Javascript] Scroll a multiline textarea
- Next by Date: [Javascript] Scroll a multiline textarea
- Previous by thread: [Javascript] Scroll a multiline textarea
- Next by thread: [Javascript] Scroll a multiline textarea
- Index(es):