Wednesday, May 23, 2012

call function before scrolling to the bottom of page

I know how to call a function when scrolling hits the bottom of the page.



$(window).scrollTop() == $(document).height() - $(window).height()


But I would like to do it a little bit before it hits the bottom. How would I accomplish this?





No comments:

Post a Comment