How do browsers know where on a list I left off?


So when I’m browsing through a website with a list of items for sale and I click on an item, then press back. How does it know where on the list was I?
Some websites aren’t able to remember it but some are, how?

In: 2

This can be done by storing the data in a cookie or more likely, stored in cache that persists across the whole site. It’s where user credentials are often stored.

they remember not just the webpage that you were on, but also how far down the page you are.

the mechanism breaks down due to errors in coding, or due to the list webpage being changed while you were viewing one listing.

I get around it by opening listings in a new tab (on a PC, you click the mouse wheel, or Ctrl-click)