B
bgold12
How can I test if a vertical scroll bar is at the bottom of the range?
I know that...
document.getElementById('mydiv').scrollHeight
....returns the range, and...
document.getElementById('mydiv').scrollTop
....returns the position of the top of the scroll handle in the range,
but that's not enough information because the scroll handle adds an
arbitrary amount of height. Is there a way to test for the height of
the scroll handle, or is there just a better way to test if the scroll
bar is at the bottom of the range?
Thanks.
I know that...
document.getElementById('mydiv').scrollHeight
....returns the range, and...
document.getElementById('mydiv').scrollTop
....returns the position of the top of the scroll handle in the range,
but that's not enough information because the scroll handle adds an
arbitrary amount of height. Is there a way to test for the height of
the scroll handle, or is there just a better way to test if the scroll
bar is at the bottom of the range?
Thanks.