Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

pageYOffset property

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

Internet Explorer 9



HRESULT value = object.get_pageYOffset(* p);

Property values

Type: long

The distance the document has been scrolled.

Standards information


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

See also




Community Additions

© 2015 Microsoft