Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

javascript onclick alert

<button onclick="alertFunction()"> Click</button>

  <script>
        function alertFunction() {
            alert("Hello World");
        }
    </script>
 
PREVIOUS NEXT
Tagged: #javascript #onclick #alert
ADD COMMENT
Topic
Name
1+4 =