The Window.scrollBy() method scrolls the document in the window by the given amount.
Window.scrollBy()
MDN Reference