snipplets.dev/code/JavaScript/addEventListenter.js

4 lines
122 B
JavaScript
Raw Normal View History

2023-08-06 16:27:10 +03:00
const button = document.getElementById('button');
button.addEventListener("click", function() { console.log('click'); })