How can I not remove, and stop the event handler addEventListener if we assume there is js code:
var count = 0; el.addEventListener('click', function but(){ console.log(count); if (count >10) removeEventListener('click',but); count++; }, false) it turns out that at the 11th clique the event will not take place. And if this same count is dumped somewhere, then the same event will no longer work. Maybe you need to return false or something I do not understand? I would like that the 4th line would not delete the event, namely, it would not allow the event function to work, which would further allow using it again. I apologize in advance for the abstraction
return- Grundy