Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

change URL without reloading the Page

 function processAjaxData(response, urlPath){
     document.getElementById("content").innerHTML = response.html;
     document.title = response.pageTitle;
     window.history.pushState({"html":response.html,"pageTitle":response.pageTitle},"", urlPath);
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #URL #reloading #Page
ADD COMMENT
Topic
Name
4+1 =