go to another page using javascript

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

Also in JavaScript: