pageXOffset

This property is used to return the amount, in pixels, that the current document has been scrolled to the left or right. Again, the returned value is in pixels.

syntax:

window.pageXOffset

This Property is used to access attributes of the following:

window