scrollX

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

MDN Reference