window.scrollY property returns the number of pixels that the document is currently scrolled vertically.
Note: This property is read-only.
|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.