Answers for "javascript onclick href"

2

javascript onclick href location

onclick="location.href='unit_01.htm'"
Posted by: Guest on March-26-2020
6

onclick href

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

onclick a tag

<a href='http://www.google.com' onclick='return check()'>check</a>

<script type='text/javascript'>
function check() {
    return false;
}
</script>
Posted by: Guest on March-05-2020
1

on click in a tag

<a onclick='newwin()'>Anchor</a>
Posted by: Guest on July-01-2020
14

javascript onclick button

var button = document.querySelector('button');
button.onclick = function() {
  //do stuff
}
Posted by: Guest on March-10-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 "Javascript"

Browse Popular Code Answers by Language