mdn-ajax-nav-example
mdn-ajax-nav-example copied to clipboard
Update ajax_nav.js
I see firefox picks up
onpopstate = function (oEvent) { bUpdateURL = false; oPageInfo.title = oEvent.state.title; oPageInfo.url = oEvent.state.url; getPage(); };
but chrome does not. Adding the
window.onpopstate
gets it to work in chrome, not sure if this is correct or not.
Strict mode gives all sorts of errors... putting into my branch.