Answers for "get page scroll position javascript"

4

javascript get scroll position

function getYPosition(){
  var top  = window.pageYOffset || document.documentElement.scrollTop
  return top;
}
Posted by: Guest on May-12-2020
2

get current scroll height javascript

document.documentElement.scrollTop || document.body.scrollTop
Posted by: Guest on July-24-2020
0

get current scroll height javascript

document.documentElement.scrollTop = document.body.scrollTop = 1000;
Posted by: Guest on July-24-2020

Code answers related to "get page scroll position javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language