Answers for "on button click redirect to on page section"

0

onclick redirect to url

<td onclick="javascript:window.location.href-'http://www.stackoverflow.com'" style="cursor:hand">Stackoverflow</td>
Posted by: Guest on September-01-2021
4

how to redirect on button click in html

<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

Code answers related to "on button click redirect to on page section"

Browse Popular Code Answers by Language