Windows apps
Collapse the table of content
Expand the table of content
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.

scrollingElement property

Gets a reference to the element that scrolls in the document.

This property is read-only.

Syntax

JavaScript

p = object.scrollingElement

 

Property values

Type: Object

The reference to the element that scrolls in the document.

Remarks

This property acts as an alias for either document.documentElement or document.body, depending on which one will reflect the full page's scroll offset on its scrollTop property.

See also

document

 

 

Show:
© 2017 Microsoft