Answers for "get the current scroll position in javascrit"

4

javascript get scroll position

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

Code answers related to "get the current scroll position in javascrit"

Code answers related to "Javascript"

Browse Popular Code Answers by Language