JQiery Periksa apakah gulir ke akhir

$(window).scroll(function() {
   if($(window).scrollTop() + $(window).height() == $(document).height()) {
       alert("bottom!");
   }
});
Weary Wildebeest