Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

attach a script to a button html

<button type="button" onclick="clickHandler()">Click Me!</button>

<script>
    function clickHandler() {
      alert("something");
    }
</script>
 
PREVIOUS NEXT
Tagged: #attach #script #button #html
ADD COMMENT
Topic
Name
3+2 =