Answers for "how to call onclick function in href"

31

onclick button href

<button onclick="window.location.href='/page2'">Continue</button>
Posted by: Guest on June-08-2020
0

how to use onclick in href tag

$("#myHref").on('click', function() {
    document.getElementById(".myDiv").style.flexGrow = "5";
     window.location = "http://www.google.com";

});`
Posted by: Guest on November-05-2021

Code answers related to "how to call onclick function in href"

Browse Popular Code Answers by Language