how to scroll to the bottom of the page with JS code example Example: js scroll to bottom window.scrollTo(0,document.body.scrollHeight);