Skip to content Skip to sidebar Skip to footer

Reload To Top Of Page

SOLVED add this to the html: Its the only solution and not a duplicate of the scroll question....pff. I have edited this question in h

Solution 1:

The window's load event only runs once right after the page is done loading. So this way you can be sure that after the page loads no matter what reason (first view or refresh) it will run.

$(window).on('load', function(){
    $('html, body').scrollTop(0);
});

Post a Comment for "Reload To Top Of Page"