javascript how to know the end of the scroll code example
Example: javascript how to know the end of the scroll
if (myDiv.offsetHeight + myDiv.scrollTop >= myDiv.scrollHeight) {
// Do something
}
if (myDiv.offsetHeight + myDiv.scrollTop >= myDiv.scrollHeight) {
// Do something
}