I have a php script that shows a log of its actions as the script proceeds. The log is getting quite long, up to the point where it will echo its information past the bottom
Every 5 seconds, it will scroll the page to the bottom of the page.
function autoScrolling() {
window.scrollTo(0,document.body.scrollHeight);
}
setInterval(autoScrolling, 5000);
// adjust the time limit based on the frequency log gets updated