My testing environment:
- Latest Chrome and Firefox
- Javascript enabled
On amazon.com, across both Chrome and Firefox while changing to the different pages of a search result or best sellers list, I notice that an AJAX action is performed. The header and footer stay the same while the middle content changes. I know this can be done through AJAX but I also notice that the url changes from
www.amazon.com/stuffs/#1
to
www.amazon.com/stuffs/#2
The back button is also working properly to switch back to the last page. Is javascript being used to tell the browser to store those dynamic pages? Or is the back button caught through javascript to display the proper pages through AJAX?
You can also observe a similar behaviour across any repositories on github. It seems to be working on Chrome while logged into my account. Can someone shed some light on how this is done?