windows scroll to bottom of page js code example Example: auto scroll to bottom of page js window.scrollTo(0,document.body.scrollHeight);