Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript auto scroll on bottom

const scrollToTop = () => {
  const scrollTopButton = document.getElementById('scrollTopButton');

  scrollTopButton.addEventListener('click', () => {
    window.scrollTo(0, document.body.scrollHeight);
  });
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #auto #scroll #bottom
ADD COMMENT
Topic
Name
3+8 =