url redirect javascript

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

Also in JavaScript: