Answers for "click function html"

9

javascript click event

<button onclick="myFunction()">Click me</button>

<p id="demo"></p>

<script>
function myFunction() {
  document.getElementById("demo").innerHTML = "Hello World";
}
</script>
Posted by: Guest on April-10-2020
1

html javascript button click

<button onClick="alert('some thing to say');">click</button>
Posted by: Guest on August-24-2021

Browse Popular Code Answers by Language