Created
April 7, 2020 10:51
-
-
Save daksamedia/a9b9a6b362b2dc1fae1c7f5e1a450a52 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onscroll = function(ev) { | |
if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight) { | |
alert("you're at the bottom of the page"); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment