html js how to change url code example
Example 1: js change url
window.location.href = "www.google.com";
Example 2: java script change url without reload
window.history.replaceState({}, '','/dashboard');
window.location.href = "www.google.com";
window.history.replaceState({}, '','/dashboard');