goto page javascript code example
Example 1: js go to page
window.location.href = "http://example.com/new_url";
Example 2: javascript link to another page
window.open("http://mywebsite.com/home.html")
window.location.href = "http://example.com/new_url";
window.open("http://mywebsite.com/home.html")