window.pageYOffset property returns the number of pixels that the document is currently scrolled vertically.
Note: This property is read-only.
Note: This property is an alias for window.scrollY.
|Number||Returns the number of pixels that the document is currently scrolled vertically.|
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.