Name
scrollBy( ) — NN 4 IE 4 DOM n/a
Synopsis
scrollBy(deltaX
,
deltaY
)
Scrolls the document in the window by specified pixel amounts along
both axes. To adjust along only one axis, set the other value to
zero. Positive values for deltaX
scroll
the document upward (so the user sees content lower in the document);
negative values scroll the document downward. Positive values for
deltaY
scroll the document to the left (so
the user sees content to the right in the document); negative values
scroll the document to the right. Scrolling does not continue past
the zero coordinate points (except in Navigator 4 for the Macintosh).
Returned Value
None.
Parameters
-
deltaX
Positive or negative pixel count of the change in horizontal scroll position.
-
deltaY
Positive or negative pixel count of the change in vertical scroll position.
Get Dynamic HTML: The Definitive Reference 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.