jquery get scrolltop position code example Example: jquery get document scrolltop var top = ($(window).scrollTop() || $("body").scrollTop());