Causes the window to scroll relative to the current scrolled position by the specified x- and y-pixel offset.
Syntax
window.scrollBy(iX, iY)
Parameters
iX Required. Integerhat specifies the horizontal scroll offset, in pixels. Positive values scroll the window right, and negative values scroll it left.
iY Required. Integerhat specifies the vertical scroll offset, in pixels. Positive values scroll the window down, and negative values scroll it up.