add event listener to a variable code example
Example: js addeventlistener
var element=document.getElementById("some_id");
var listener=element.addEventListener('click',function(event){
});
var element=document.getElementById("some_id");
var listener=element.addEventListener('click',function(event){
});