Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$(window).scroll(function () {
if ($(window).scrollTop() + $(window).height() >= $(document).height() - 10) {
alert("the end of document!");
}
});
});
</script>
<style>
body {
height: 5000px;
}
</style>
</head>
<body>
Scroll Down!
</body>
</html>
The most helpful JQUERY solutions