I'm curious here, I know that it's possible to attach multiple event handlers to same element if I use DOM Level 2
method called addEventListener
(), so I'm wondering if we have this situation:
someButton.addEventListener("mouseover", showHint, false);
someButton.addEventListener("mouseover", showHintTwo, false);
Is this possible in real world scenario? Example above ^
And how could I choose when I want to call showHint
and when I want to call showHintTwo
,is it possible to handle it/separate it somehow ... because both of the event handlers will fire when mouseover
happened?
Thanks guys
Cheers