snipplets.dev/code/JavaScript/addEventListenter.js
2023-09-26 22:05:13 +03:00

4 lines
122 B
JavaScript

const button = document.getElementById('button');
button.addEventListener("click", function() { console.log('click'); })