i will like to be updating the browser url whenever i make an ajax query without reloading the page, so that one can easily go to the url and view the generated page through the url queries. using jquery.
Asked
Active
Viewed 115 times
1 Answers
0
if (typeof (window.history.pushState) == 'function') {
window.history.pushState({ "html": response.html, "pageTitle": response.pageTitle }, "", urlPath);
} else {
window.location.hash = '#!' + urlPath;
}
but Url PushState is not Support in I.E So u can use '#' Followed by your Url

anil shah
- 3,079
- 2
- 12
- 4