Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get scroll position

function getYPosition(){
  var top  = window.pageYOffset || document.documentElement.scrollTop
  return top;
}
 
PREVIOUS NEXT
Tagged: #javascript #scroll #position
ADD COMMENT
Topic
Name
7+2 =