O
O
Outoverlay2015-11-20 19:10:12
JavaScript
Outoverlay, 2015-11-20 19:10:12

How to unsave javascript scroll position?

I did not understand why after stopping the scrolling of the page, and then refreshing the page, the position of the scroll does not change (use scrollTo(), scrollIntoView()), then I realized that this position is saved by the browser. How to cancel browser position saving?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0X12eb, 2015-11-21
@0X12eb

$(document).ready(function(){
    window.scrollTo(0, 0);
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question