Is it possible to add eventListener
with regex?
Something like this:
document.addEventListener(""+/\d+/+"", function (data) {
// ...
});
Is it possible to add eventListener
with regex?
Something like this:
document.addEventListener(""+/\d+/+"", function (data) {
// ...
});
It's impossible to attach an event listener to events by mask. You can take a list of events, here, for example and listen to all of them in a cycle to attach our handler to them.