addeventlistener js parameters code example
Example: js event listener parameters
const element = document.getElementById('xyz');
element.addEventListener('click', function(){ yourFunction(arg1, arg2) });
const element = document.getElementById('xyz');
element.addEventListener('click', function(){ yourFunction(arg1, arg2) });