Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

onloadscroll to top

window.onbeforeunload = function () {
  window.scrollTo(0, 0);
}
 Run code snippetHide results
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #onloadscroll #top
ADD COMMENT
Topic
Name
7+9 =