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