Variable pageXOffset

    pageXOffset: number

    This is a legacy alias of scrollX.

    MDN Reference