get current page position javascript code example
Example 1: get current scroll height javascript
document.documentElement.scrollTop || document.body.scrollTop
Example 2: get current scroll height javascript
document.documentElement.scrollTop = document.body.scrollTop = 1000;