Answers for "automatically scroll down to bottom on page in js"

0

javascript auto scroll on bottom

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

  scrollTopButton.addEventListener('click', () => {
    window.scrollTo(0, document.body.scrollHeight);
  });
};
Posted by: Guest on January-28-2021

Code answers related to "automatically scroll down to bottom on page in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language