window.pageXOffset property returns the number of pixels that the document is currently scrolled horizontally.
Note: This property is read-only.
Note: This property is an alias for window.scrollX.
|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.