This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

pageYOffset

Property of css/cssom/propertiescss/cssom/properties

Syntax

var result = element.pageYOffset;
element.pageYOffset = value;

Notes

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.

Syntax

Standards information

See also

Related articles

CSSOM

Related pages

  • window
  • pageXOffset

Attributions