Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

pageYOffset property

Gets the distance, in pixels, that a document has scrolled vertically.

Syntax

JavaScript

p = object.pageYOffset

Property values

Type: Integer

The distance the document has been scrolled.

Standards information

Remarks

When you scroll a document vertically, some content is moved outside the view of the display area. The pageYOffset property returns the difference between the first pixel in the content and the first pixel currently in view.

See also

window
pageXOffset

 

 

Build date: 11/29/2012

© 2013 Microsoft. All rights reserved.