Change querystring with Javascript
I'm making an ajax search page. I've got all the ajax working, but there's a usability issue with the query string.
In my setup, the user types a search query and clicks a button. Then javascript fetches the results via ajax and injects them into the page. All good.
The problem is - I want the user to be able to bookmark their search, or email the url to a friend, etc. With a naive way of doing ajax, they won't be able to do this as the url of the page doesn't change when a search is made.
So what I want to be able to do is to alter the query string of the url using javascript without reloading the page. Is this possible?
|