Ujjwal Singh Ujjwal Singh - 1 year ago 149
Ajax Question

history.pushstate not updating title

I am using AJAX to load main content of the page. Using

history.pushstate(Object:State, String:Title, String:URL)
- I am able to update the URL in the address bar and navigate back in the history.

However the
parameter appears to have no effect. Neither does the window title change nor the title of the entries in the 'history list' (perhaps both of them are same anyway).

What am I doing wrong?

param is simply ignored in chrome. http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2010-June/026827.html

Answer Source

The title parameter is not the window title.
It may be used as a title of the state but some browsers like Chrome simply ignore it.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download