...

View Full Version : Tell location of scrollbars in textarea?



glz
06-22-2008, 08:33 PM
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 http://bstats.freehostia.com/b.gif

mrhoo
06-22-2008, 09:41 PM
texarea.scrollTop



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum