So erfassen Sie Klicks mit 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");
});