// scroll down the document by 1 page
window.scrollByPages(1);
// scroll up the document by 1 page
window.scrollByPages(-1);Window: scrollByPages() method / notebook
Window: scrollByPages() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.