Answers for "call function in tag javascript"

1

call function in javascript from html

<div>
    <button onclick="YourFunction()" value="CallMyFunction"></button>
</div>

<script>
    function YourFunction() {
        console.log("Hello Word")
    }
</script>
Posted by: Guest on January-27-2022
0

call javascript function from a tag

<a href="#" onclick="someFunction(); return false;">LINK</a>
Posted by: Guest on October-19-2021

Code answers related to "call function in tag javascript"

Browse Popular Code Answers by Language