detect if scrolled to bottom

155

detect if scrolled to bottom -

window.onscroll = function(ev) {
    if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight) {
        // you're at the bottom of the page
    }
};

Comments

Submit
0 Comments