how to make a button redirect to another page using javascript code example
Example 1: js go to page
window.location.href = "http://example.com/new_url";
Example 2: how to open a new html page on button click in javascript
<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>