Window JavaScript Tutorial

Syntax

window.scrollBy(numHort, numVert)
The scrollBy() method scrolls the window.
If the numbers passed are positive, the window is scrolled in the positive direction. Negative numbers are scrolled in the negative direction.