Checking is near/at the bottom of the page

Posted by digitalfresh on Stack Overflow See other posts from Stack Overflow or by digitalfresh
Published on 2010-06-16T23:24:32Z Indexed on 2010/06/16 23:52 UTC
Read the original article Hit count: 138

Filed under:
|
|

I need to check if an element is x pixels from the bottom of the page, to dynamically load new content. currently, scrollTop and height do not match even if the bar is on the bottom.

jquery is allowed, although basic javascript would be more helpful.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery