HTML DOM Element scrollIntoView
HTML DOM Element scrollIntoView Property
The scrollIntoView() method is used for scrolling an element into the visible area of the browser window.
Syntax:-
Its syntax is:- element.scrollIntoView(align)
Further Explanation:-
Parameter | Description |
align |
Optional.A boolean that indicates the type of the align. If true, then top of the element will be aligned to the top of the visible area of the scrollable ancestor. If false, then bottom of the element will be aligned to the bottom of the visible area of the scrollable ancestor. |