3.1-50%
3.2-4.30%
BaselineWidely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2022.
The Element.scrollIntoView() method scrolls the current element into the visible area of the browser window. Parameters can be provided to set the position inside the visible area as well as whether scrolling should be instant or smooth.