Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

eventlistener javascript

document.querySelector("button").addEventListener("click", handle);

function handle() {
  alert("I got clicked")
}
 
PREVIOUS NEXT
Tagged: #eventlistener #javascript
ADD COMMENT
Topic
Name
1+5 =