como detectar cliques com javascript
element.addEventListener('click', function () {
alert('Clicked!')
});
stackoverflow.com
element.addEventListener('click', function () {
alert('Clicked!')
});