redirect to another domain javascript

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

Also in JavaScript: