Element: scrollTop property - Web APIs | MDN - MDN Web Docs
Apr 19, 2025 · The scrollTop property of the Element interface gets or sets the number of pixels by which an element's content is scrolled from its top edge. This value is subpixel precise in modern browsers, meaning ...