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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access