js onclick redirect
snippet in html

javascript redirect page

user3485

// Simulate a mouse click:
window.location.href = "http://www.w3schools.com";

// Simulate an HTTP redirect:
window.location.replace("http://www.w3schools.com");

js onclick redirect

user9924

<button onclick="location.href='www.yoursite.com'">Click Me</button>

how to open a new html page on button click in javascript

user9887

<button id="myButton" class="float-left submit-button" >Home</button>

<script type="text/javascript">
    document.getElementById("myButton").onclick = function () {
        location.href = "www.yoursite.com";
    };
</script>