Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

call function in javascript from html


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

<script>
    function YourFunction() {
        console.log("Hello Word")
    }
</script>
 
PREVIOUS NEXT
Tagged: #call #function #javascript #html
ADD COMMENT
Topic
Name
8+4 =