javascript dom addeventlistener with event parameter code example
Example: js addeventlistener
var element=document.getElementById("some_id");
var listener=element.addEventListener('click',function(event){
});