JS mengubah URL
window.location.href = "www.google.com";
just-saved-you-a-stackoverflow-visit
window.location.href = "www.google.com";
var url = window.location.origin + '/foo/foo.php';
history.pushState({}, null, url);
history.pushState({}, null, newUrl);
element.setAttribute('href','http://www.google.com');