Answers for "onclick a tag javascript"

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

onclick on anchor tag

<a href='more.php' onclick='show_more_menu()'>More >>></a>
Posted by: Guest on July-18-2020
1

a tag onclick

<a href="javascript:show_more_menu();">More >>></a>
Posted by: Guest on April-14-2020
2

onclick in js

<input type="text" name="text" id="test" onmouseover="skriv('klick')">
    <input type="button" name="send" value="Skicka" id="klick" onclick="skriv('test')">
    
    
    <script src="lib/script.js"></script>


// in lib/script.js

  function skriv(name) {
    document.getElementById(name).style.backgroundColor='red';
  }
Posted by: Guest on June-27-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language