scrollY

The read-only scrollY property of the Window interface returns the number of pixels by which the document is currently scrolled vertically.

MDN Reference