What\'s the difference between:
$(window).scrollTop()
and
$(document).scrollTop()
Thanks.
Cross browser way of doing this is
var top = ($(window).scrollTop() || $("body").scrollTop());