how to automatically scroll down a page js code example
Example 1: automatically scroll to bottom of page
window.scrollTo(0,document.body.scrollHeight);
Example 2: javascript scroll down
window.scrollTo(300, 500); //X=300 and Y=500
window.scrollTo(0,document.body.scrollHeight);
window.scrollTo(300, 500); //X=300 and Y=500