By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,599 Members | 1,872 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,599 IT Pros & Developers. It's quick & easy.

set position of textarea scrollbar to the bottom

P: 1
hi i m trying from a long time to set positioning the scroller in text area in bottom so that after refreshing the page i can see the bottom content of text area plz help
Aug 30 '06 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
You need to set scrollTop to set the scrollbar position.

The element's scrollHeight property is the amount of scrollable content (+ padding sometimes). If you subtract the clientHeight that should give you the scrollTop position to set, but there is inconsistency across browsers in this area.
May 5 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.