Name
scroll( ) — NN 3 IE 4 DOM n/a
Synopsis
scroll(x
, y
)
Sets the scrolled position of the document inside the current window or frame. To return the document to its unscrolled position, set both parameters to zero.
Returned Value
None.
Parameters
-
x
Horizontal measure of scrolling within the window.
-
y
Vertical measure of scrolling within the window.
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.