Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js scroll to top

// this changes the scrolling behavior to "smooth"
window.scrollTo({ top: 0, behavior: 'smooth' });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #scroll #top
ADD COMMENT
Topic
Name
2+5 =