Can be tricky to write browser-independent, backward-compatible code.
The previous (browser-independent code)
is a good reason to use
that take care of this complexity for you.
- If the page changes without changing the URL, it can be difficult to give the user a URL to link to,
if they want to bookmark / link to
a certain configuration of the page.
Changing the URL without refreshing page
- Manipulating the browser history
- The problem is: Not enough to change URL.
Make 5 drag moves West.
Page contents change 5 times.
URL changes 5 times.
But not actual 5 new pages.
"Back" arrow may show a different number of pages, not 5.