Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

scroll top js

document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera

document.body.scrollTop = 0; // For Safari
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #scroll #top #js
ADD COMMENT
Topic
Name
4+4 =