Advertisement
asimryu

detect scroll bottom using jquery

Aug 23rd, 2017
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.14 KB | None | 0 0
  1. $(window).scroll(function() {
  2.    if($(window).scrollTop() + $(window).height() == $(document).height()) {
  3.        alert("bottom!");
  4.    }
  5. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement