3 ms·
Maybe I only need one event handler, or maybe I've baked a function that calls another function? Besides, I'd rather use one standard method that works across
by shiranaihito 17y ago
Maybe I only need one event handler, or maybe I've baked a function that calls another function?
Besides, I'd rather use one standard method that works across browsers than choose one based on the user's browser. Would you call that bad programming? :p
Nowadays I generally use jQuery (.click(fn)) though.
- nostrademons 17y agoAh, okay. Most of the stuff I've worked on adds events through a library (eg. jQuery.click(fn)), and there's no reason for that library to use onmouseover etc.