Name
Window.scrollBy( ): scroll the document by a relative amount â JavaScript 1.2:
Synopsis
window
.scrollBy(dx
,dy
)
Arguments
-
dx
The number of pixels by which to scroll the document to the right.
-
dy
The number of pixels by which to scroll the document down.
Description
scrollBy( )
scrolls the
document displayed in window by the relative amounts specified by
dx
and
dy
.
Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.