Answers for "js click on an element"

1

javascript trigger click on element

document.getElementById('myElementID').click();
Posted by: Guest on January-10-2020
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
0

js trigger click

<a href="#" target="_blank" onclick="javascript:Test("Test");">MSDN</a>
Posted by: Guest on January-27-2021

Browse Popular Code Answers by Language