How to scroll to top of page with JavaScript/jQuery?
Is there a way to control browser scrolling with JavaScript/jQuery? When I scroll my page half way down, then trigger a reload, I want the page to go pack to the top, but instead it tries to find the last scroll position. So I did this: $(‘document’).ready(function() { $(window).scrollTop(0); }); But no luck. EDIT: So … Read more