Try this. When you scroll the page, and if the page is reached to the bottom, then a warning message will appear.
$(window).scroll(function() {
if($(window).scrollTop() + $(window).height() == $(document).height()) {
alert("Bottom Reached!");
}
});
source
share