For the same function, where you can add multiple event listeners to a single element, use the following:
addEventListener('mouseover', function(e) {
if (e.target instanceof HTMLAnchorElement) {
}
});
This will do the same. For other selectors:
addEventListener('mouseover', function(e) {
if (e.target instanceof HTMLAnchorElement) {
}
if (e.target.className.match(/(\s|^)foobar(\s|$)/)) {
}
if (e.target.id == 'baz') {
}
if (e.target instanceof HTMLLabelElement && e.target.attributes.for.value == 'baz') {
}
});
mouseenter , , , , . , mouseenter , , jQuery, document , . , , mouseover.