Pur js scrolltop ()
// Get scrolled pixels
var intElemScrollTop = someElement.scrollTop; // document.documentElement.scrollTop;
Fair Ferret
// Get scrolled pixels
var intElemScrollTop = someElement.scrollTop; // document.documentElement.scrollTop;