I want to alert something when the scroll reaches the BOTTOM of the page, like this:
$(function(){
$(document).scroll(function() {
if($(document).scrollTop() == 0) alert("top");
})
})
But without jQuery, and alert when reaches the Bottom.
It's successfully tested with Firefox 11, Chrome 17, IE 9 (X-UA-Compatible: 8, 7, 5) and Opera 11.60.
JSFiddle here: http://jsfiddle.net/cSer6/
example: http://jsfiddle.net/ampersand/AEnzJ/
tested with http://browserling.com in chrome 17/18, safari 5, ff 10/11.0, ie 7-9
JSFiddle demo
This is working for me in IE
http://jsfiddle.net/cSer6/46/