scrollingElement property
Gets a reference to the element that scrolls in the document.
This property is read-only.
Syntax
| JavaScript | |
|---|
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
Show: