// Scroll to right edge of the page
let maxX = window.scrollMaxX;
window.scrollTo(maxX, 0);Window: scrollMaxX property / notebook
Window: scrollMaxX property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.