SyntaxFix
Write A Post
Hire A Developer
Questions
You need:
newElem.addEventListener('click', { handleEvent: function (event) { clickImg(parameter); } });