--- title: Document.scrollingElement slug: Web/API/Document/scrollingElement tags: - API - Document - Property - Reference - scrollingElement translation_of: Web/API/Document/scrollingElement ---
scrollingElement は、{{domxref("Document")}} インターフェースの読み込み専用プロパティです。scrollingElement はHTMLの body 要素を返します。body 要素が存在しないか、それが スクロール可能 な場合は null を返します。var element = document.scrollingElement;
var scrollElm = document.scrollingElement; scrollElm.scrollTop = 0;
| 仕様書 | 策定状況 | コメント |
|---|---|---|
| {{SpecName('CSSOM View','#dom-document-scrollingelement','scrollingElement')}} | {{Spec2('CSSOM View')}} | Initial definition |
{{Compat("api.Document.scrollingElement")}}