Question:
How can you alter the URL of the current page without triggering a page reload, and specifically access the portion before the '#' hash?
Answer:
In modern browsers (Chrome, Safari, Firefox 4 , and Internet Explorer 10pp4 ), this functionality is now possible.
Implementation:
Modify URL:
function processAjaxData(response, urlPath) { document.getElementById("content").innerHTML = response.html;
The above is the detailed content of How Can I Change a URL Without Reloading the Page and Accessing the Part Before the Hash?. For more information, please follow other related articles on the PHP Chinese website!