best way to programmatically to the bottom of the page js code example Example: automatically scroll to bottom of page window.scrollTo(0,document.body.scrollHeight);