Q:

js change url

window.history.pushState('', 'New Page Title', '/new-url.php');
3
 window.location.href = "www.google.com"; 
0
history.pushState({}, null, newUrl);
2
 function processAjaxData(response, urlPath){
     document.getElementById("content").innerHTML = response.html;
     document.title = response.pageTitle;
     window.history.pushState({"html":response.html,"pageTitle":response.pageTitle},"", urlPath);
 }
0

New to Communities?

Join the community