when window.innerHeight
+ document.body.scrollTop
is greater than or equal to document.body.offsetHeight
then you are at bottom
but since IE has issues with these properties you need to use alternative properties, like
document.documentElement.scrollTop
for the scroll and document.documentElement.clientHeight
for the window height
full code: http://jsbin.com/egegu3/6/edit