Answers for "div onclick href"

6

onclick href

onclick="location.href='http://www.hyperlinkcode.com/button-links.php'"
Posted by: Guest on March-30-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
0

how to use onclick in href tag

<a href="http://www.google.com" onclick="return myFunction();">Link</a>


function myFunction() {
    document.getElementById(".myDiv").style.flexGrow = "5"; 
}
Posted by: Guest on November-05-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language