pageYOffset property
[This documentation is preliminary and is subject to change.]
Gets the distance, in pixels, that a document has scrolled vertically.
![]() |
Syntax
HRESULT value = object.get_pageYOffset(long* p);
Property values
Type: long
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
Build date: 1/23/2012
.png)