window.location.href = "http://mywebsite.com/home.html";
<script> window.location.href = "http://mywebsite.com/home.html"; </script>
// Simulate a mouse click: window.location.href = "http://www.w3schools.com"; // Simulate an HTTP redirect: window.location.replace("http://www.w3schools.com");
window.location.replace('http://mywebsite.com/home.html');
window.location.href = "http://example.com/new_url";
window.location = "https://example.com/";