Automatic return to top of page during web navigation
didshedid
Posted messages
4
Status
Membre
-
didshedid Posted messages 4 Status Membre -
didshedid Posted messages 4 Status Membre -
Hello,
I've been having a small issue for a while, nothing serious but a bit annoying!
When I browse and go back to the previous page, it always takes me back to the top of the page. In fact, the page opens where I clicked, and after about 5 seconds, it scrolls back to the top.
It's a bit of a hassle, especially when shopping online and trying to find the previous spot.
Thank you for taking the time to address my little problem.
I've been having a small issue for a while, nothing serious but a bit annoying!
When I browse and go back to the previous page, it always takes me back to the top of the page. In fact, the page opens where I clicked, and after about 5 seconds, it scrolls back to the top.
It's a bit of a hassle, especially when shopping online and trying to find the previous spot.
Thank you for taking the time to address my little problem.
5 réponses
Normally, browsers return to the previous position on the page (but this is not an absolute rule), so by disabling JavaScript there is no reason it shouldn't work.
However, some scripts present on a page can either ensure that the page scrolls to the top upon loading or even completely reload the page, which will reset it to the top (intentional behavior), or confuse the browser which will no longer be able (or willing) to "remember" the position on the page.
This is not stored in cookies, normally not in cache either, maybe in browser-specific variables, stored in RAM. So it's independent of the site you visit or create.
(But it is possible with JavaScript and/or anchors to return to a specific point on the page, it seems).
Help: https://www.mnot.net/cache_docs/index.fr.html
However, some scripts present on a page can either ensure that the page scrolls to the top upon loading or even completely reload the page, which will reset it to the top (intentional behavior), or confuse the browser which will no longer be able (or willing) to "remember" the position on the page.
This is not stored in cookies, normally not in cache either, maybe in browser-specific variables, stored in RAM. So it's independent of the site you visit or create.
(But it is possible with JavaScript and/or anchors to return to a specific point on the page, it seems).
Help: https://www.mnot.net/cache_docs/index.fr.html