js go to page web code example
Example 1: javascript go to url
window.location = url;
Example 2: js go to page
window.location.href = "http://example.com/new_url";
window.location = url;
window.location.href = "http://example.com/new_url";