Search notes:
window.scrollX / window.scrollY
The values of
window.scrollX
and
window.scrollY
indicate the amount in pixels that the document is scrolled horizontally and vertically.
window.pageXOffset
and
window.pageYOffset
are aliases for
window.scrollX
and
window.scrollY
.
See also
Programming for a web browser: Coordinates of the window, screen and Element object (etc)
Index