Answers for "window.scrollto(0 0) not working"

0

window.scrollto(0 0) not working

const scrollToTop = () => {
  document.getElementById("scroller").scroll(0,0)
}

<button onClick={scrollToTop}>Scroll to Top</button>
Posted by: Guest on December-13-2020

Code answers related to "window.scrollto(0 0) not working"

Code answers related to "Javascript"

Browse Popular Code Answers by Language