Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-22-2008, 07:33 PM   PM User | #1
glz
New Coder

 
Join Date: Apr 2007
Posts: 57
Thanks: 3
Thanked 0 Times in 0 Posts
glz is an unknown quantity at this point
Question Tell location of scrollbars in textarea?

I've tried these properties of the textarea element:
offsetHeight
scrollHeight


They effectively tell me when the text has overflowed where it causes there to be scrollbars in the textarea. However, I need to know the location of scrollbars themselves. How can I know where the scrollbar stands in its scrolling range? I have no idea if the user has scrolled halfway down the textarea, not scrolled at all, or when they start to scroll.

How can i tell the location of the scrollbar (width or height) in a textarea?

-thanks
__________________
PHP Regex Tester
glz is offline   Reply With Quote
Old 06-22-2008, 08:41 PM   PM User | #2
mrhoo
Regular Coder

 
Join Date: Mar 2006
Posts: 708
Thanks: 30
Thanked 127 Times in 118 Posts
mrhoo will become famous soon enoughmrhoo will become famous soon enough
texarea.scrollTop
mrhoo is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:10 AM.


Advertisement
Log in to turn off these ads.