Answers for "onclick for a tag html"

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
4

javascript onclick

document.getElementById("Save").onclick = function ()
    {
     alert("hello");
     //validation code to see State field is mandatory.  
    }
Posted by: Guest on September-08-2020
1

a tag onclick

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language