Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Update title of dynamically-loaded page? Reply To: Update title of dynamically-loaded page?

#237526
Shikkediel
Participant

Why wouldn’t it update the url? There’s a line for that :

history.pushState(null, null, _href);

You don’t really need Modernizr, this’ll do the same :

if (history.pushState !== 'undefined')

Did you add that plugin to begin with by the way?

The page was written a while back, at this point it would be better to use .on() everywhere instead of .delegate() and such…