JavaScript » Window » scrollBy

window.scrollBy(horizPixels, vertPixels)

This method is used to scroll the window's content area by the specified number of pixels. This is only useful when there are areas of the document that cannot be seen within the window's current viewing area, and the visible property of the window's scrollbar must be set to true for this method to work.