On a traditional pageload, the page will be scrolled to the top. This is especially important when navigating from a long page to another page - being in the middle of the new page is disorienting. A short-term solution would be to use the following after a DOM write:
document.body.scrollTop = document.documentElement.scrollTop = 0;
On a traditional pageload, the page will be scrolled to the top. This is especially important when navigating from a long page to another page - being in the middle of the new page is disorienting. A short-term solution would be to use the following after a DOM write:
document.body.scrollTop = document.documentElement.scrollTop = 0;