Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript auto scroll a page to top

window.onbeforeunload = function () {
  window.scrollTo(0, 0);
}
 
 
PREVIOUS NEXT
Tagged: #javascript #auto #scroll #page #top
ADD COMMENT
Topic
Name
2+3 =