Modify Address Bar URL in AJAX App to Match Current State
The way to do this is to manipulate location.hash when AJAX updates result in a state change that you’d like to have a discrete URL. For example, if your page’s url is: http://example.com/ If a client side function executed this code: // AJAX code to display the “foo” state goes here. location.hash=”foo”; Then, the URL … Read more