como detectar cliques com javascript
element.addEventListener('click', function () {
alert('Clicked!')
});
stackoverflow.com
element.addEventListener('click', function () {
alert('Clicked!')
});
var elem = element ;
elem.addEventListener('click' , function (){
console.log("Clicked");
});