Menasheh
0
Q:

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

<button onclick="location.href='www.yoursite.com'">Click Me</button>
6
<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>
3

New to Communities?

Join the community