Window JavaScript Tutorial

The pageXOffSet property reflects the current horizontal pixel location of the top-left corner of the document.