// Experimental: https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView#Browser_compatibility document.body.scrollIntoView({behavior: 'smooth', block: 'start'});