Answers for "onclick a href"

6

onclick href

onclick="location.href='http://www.hyperlinkcode.com/button-links.php'"
Posted by: Guest on March-30-2020
1

on click in a tag

<a onclick='newwin()'>Anchor</a>
Posted by: Guest on July-01-2020
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

Browse Popular Code Answers by Language