Answers for "onclick open page"

0

onclick url

<button onclick="location.href='logout.php';">logout</button>
Posted by: Guest on July-04-2020
4

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>
Posted by: Guest on April-29-2020
1

onclick open link js

window.open(url);
Posted by: Guest on June-06-2020

Code answers related to "onclick open page"

Browse Popular Code Answers by Language