master
// window.addEventListener("scroll", function(ev) { // if ((window.innerHeight + window.pageYOffset) >= document.body.offsetHeight) { // alert("you're at the bottom of the page"); // } // });