where to use add event listener in dom js code example
Example: javascript pass parameter to event listener
var someEventHander=function(){
console.log(event,param1,param2);
}
//add listener
document.getElementById("someid").addEventListener('click',someEventHander.bind(event,param1,param2));