switch url javascript code example
Example 1: js change url
window.location.href = "www.google.com";
Example 2: javascript link to another page
window.open("http://mywebsite.com/home.html")
window.location.href = "www.google.com";
window.open("http://mywebsite.com/home.html")