scrollBy()

This method is used to scroll the content a certain amount as specified by a negative or positive value of deltaX or deltaY. The values of deltaX and deltaY are measured in pixels.

syntax:

scrollBy (deltaX or deltaY, in positive or negative pixels)

This method is used with the following:

window