js navigate to another page

JavaScript
window.location.href = "http://mywebsite.com/home.html";window.location.href = "http://example.com/new_url";
Source

Also in JavaScript: