javascript change scroll position of page code example
Example 1: window log scrollpostion
$(window).on('scroll', function() {
console.log( $(this).scrollTop() );
});
Example 2: get current scroll height javascript
document.documentElement.scrollTop = document.body.scrollTop = 1000;