Window: scrollByPages() method
Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
The Window.scrollByPages()
method scrolls the current document by the specified number of pages.
Syntax
Parameters
pages
is the number of pages to scroll. It may be a positive or negative integer.
Return value
Examples
window.scrollByPages(1);
window.scrollByPages(-1);
Specifications
DOM Level 0. Not part of specification.
Browser compatibility
|
Desktop |
Mobile |
|
Chrome |
Edge |
Firefox |
Internet Explorer |
Opera |
Safari |
WebView Android |
Chrome Android |
Firefox for Android |
Opera Android |
Safari on IOS |
Samsung Internet |
scrollByPages |
No |
No |
1 |
No |
No |
No |
No |
No |
4 |
No |
No |
No |
See also