Hey all, I'm having trouble working out a way to detect when a
scrollbar has hit the bottom. I've played about with the scrollTop
property but because this gives the number of pixels from the top of
the element to the top of the bar, I can't easily compare the height.

Any ideas or pointers?

I would like it to work with elements as simple as an overflowing div:

<div style="width: 100px; height: 100px; overflow: scroll;">
    <p>Some content that will cause a scrollbar to appear in the
parent div</p>
    <p>Some content that will cause a scrollbar to appear in the
parent div</p>
    <p>Some content that will cause a scrollbar to appear in the
parent div</p>
<div>

Thanks.

Adrian

Reply via email to