jquery if scroll to bottom of page
$(window).scroll(function(){ if($(window).scrollTop()+$(window).height()==$(document).height()){ console.log("bottom"); } }); $(window).scroll(function(){ if($(window).scrollTop()+$(window).height()>$(document).height()-100){ console.log("near bottom"); } });