Reputation: 1095
Using localscroll
on ready but the browser snaps to hash on ready. How do I prevent that and have it scroll to the top no matter what?
if this is not possible. How do you offset the position of the window.location
of hash?
Upvotes: 5
Views: 3290
Reputation: 50976
Use $(window).scrollTop(0);
$(function(){
$(window).scrollTop(0);
});
Upvotes: 1