addEventListenter
This commit is contained in:
parent
94212c65c2
commit
51c5b24871
3
snipplets/code/JavaScript/addEventListenter.js
Normal file
3
snipplets/code/JavaScript/addEventListenter.js
Normal file
@ -0,0 +1,3 @@
|
||||
const button = document.getElementById('button');
|
||||
|
||||
button.addEventListener("click", function() { console.log('click'); })
|
Loading…
Reference in New Issue
Block a user