how to scroll down to the bottom in html code example Example: automatically scroll to bottom of page window.scrollTo(0,document.body.scrollHeight);