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");
	}
});

Оставить комментарий

или Ctrl+Enter

Комментарии к записи по RSS