Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript scroll to top

const goToTop = () => window.scrollTo(0, 0);

goToTop();
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #javascript #scroll #top
ADD COMMENT
Topic
Name
2+4 =