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