element.addEventListener('click', function () { alert('Clicked!') });
var elem = element ; elem.addEventListener('click' , function (){ console.log("Clicked"); });