$(window).scroll(function (event) { var scroll = $(window).scrollTop(); console.log(scroll); });
Save scroll position for reload or ajax call for new content
var scroll = 0; scroll = $(window).scrollTop(); console.log(scroll); location.reload(); $(window).scrollTop(scroll);