JavaScript » Window » pageYOffset

Syntax:
window.pageYOffset

These properties return the X and Y position of the current page in relation to the upper left corner of a window's display area.