0

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.

sirlouis
  • 65
  • 1
  • 9
  • 1
    [jQuery & history.js example](http://stackoverflow.com/questions/13553037/jquery-history-js-example) – Ohgodwhy Mar 29 '13 at 09:17

1 Answers1

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