Answers for "javascript scroll down"

3

javascript scroll down

window.scrollTo(300, 500);	//X=300 and Y=500
Posted by: Guest on May-22-2020
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 "Javascript"

Browse Popular Code Answers by Language