Cross-browser jquery ajax history with window.history.pushState and fallback
// Assuming the path is retreived and stored in a variable ‘path’ if (typeof(window.history.pushState) == ‘function’) { window.history.pushState(null, path, path); } else { window.location.hash=”#!” + path; }