// this changes the scrolling behavior to "smooth"
window.scrollTo({ top: 0, behavior: 'smooth' });
scrollToTop(){
window.scroll(0,0);
}
// auto-scroll to the top of the webpage
window.scrollTo(0, 0);
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
document.body.scrollTop = 0; // For Safari
window.scrollTo(0, 0);
const scrollToTop = () => window.scroll(0,0)
const goToTop = () => window.scrollTo(0, 0);
goToTop();
yOffset = window.pageYOffset;
window.scrollTo(xCoord, yCoord);