Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript onclick event listener

document.getElementById("myBtn").addEventListener("click", function() {
  alert("Hello World!");
});
 
PREVIOUS NEXT
Tagged: #javascript #onclick #event #listener
ADD COMMENT
Topic
Name
3+1 =