html roll entire page code example
Example 1: javascript scroll down
window.scrollTo(300, 500); //X=300 and Y=500
Example 2: scroll to a section of your page html
html {
scroll-behavior: smooth;
}
window.scrollTo(300, 500); //X=300 and Y=500
html {
scroll-behavior: smooth;
}