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