find scroll hitted bottom in javascript code example
Example 1: js scroll to bottom of element
var objDiv = document.getElementById("your_div");
objDiv.scrollTop = objDiv.scrollHeight;
Example 2: javascript detect scroll to bottom of page
function scrolled(e) {
if (myDiv.offsetHeight + myDiv.scrollTop >= myDiv.scrollHeight) {
scrolledToBottom(e);
}
}