Hello based on my question located at :
javascript crossbrowser determine if user scrolld to the bottom of page
How could i write this to be mobile compatible?
window.onscroll = function () {
if (document.body.scrollHeight == (document.body.scrollTop + document.body.clientHeight)) {
alert("ok");
}
}
thank you
I do not know if this is to help.
As you say you can get the current scrollHeight, what is happen if you
place a anchor on bottom of the page? and use a script as