javascript change url without reload

JavaScript
window.history.pushState('', 'New Page Title', '/new-url.php');history.pushState({}, null, newUrl);
Source

Also in JavaScript: