Search code examples
javascriptajaxbrowser-history

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 title 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?

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


Solution

  • 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.