The scroll() method of the Element interface scrolls the element to a particular set of coordinates inside a given element.
scroll()
MDN Reference
Optional
The
scroll()method of the Element interface scrolls the element to a particular set of coordinates inside a given element.MDN Reference