Organizational Research By

Surprising Reserch Topic

ajax back button and dom updates

ajax back button and dom updates  using -'javascript,ajax,firefox'

If javascript modifies DOM in page A, user navigates to page B and then hits back button to get back to the page A. All modifications to DOM of page A are lost and user is presented with version that was originally retrieved from the server.

It works that way on stackoverflow, reddit and many other popular websites. (try to add test comment to this question, then navigate to different page and hit back button to come back - your comment will be "gone")

This makes sense, yet some websites (, etc) are somehow forcing browser to serve user the latest state of the page. (go to, click on say Downloads link at the top and then click back button - all DOM updates will be preserved)

where is the inconsistency coming from?

asked Oct 11, 2015 by mannumits1
0 votes

Related Hot Questions

Government Jobs Opening