click scroll down chapter javascript code example
Example 1: how to smooth scroll in javascript
window.scrollTo({ top: 900, behavior: 'smooth' })
Example 2: javascript scroll down
window.scrollTo(300, 500); //X=300 and Y=500
window.scrollTo({ top: 900, behavior: 'smooth' })
window.scrollTo(300, 500); //X=300 and Y=500