Returns the number of pixels that the document has already been scrolled horizontally.
Syntaxxpix = window.scrollX
xpix is the number of pixels.
Use this property to check that the document hasn't already been scrolled some if you are using relative scroll functions such as window.scrollBy(), window.scrollByLines(), or window.scrollByPages().
SpecificationDOM Level 0. Not part of specification.