I thought the following code targets both IE and Opera
window.onload = function() {
document.attachEvent("onmousewheel", function() {
console.log("mousewheel detected");
});
};
However, Opera (11.11) has no response at all.
I'v tried to Google this but didn't get any helpful info. Does Opera even support mousewheel event?
Combinations I'v tried...
attachEvent
, addEventListener
and mousewheel
, onmousewheel
, DOMMouseScroll
update
ok, mousewheel
event does get caught on Opera, the problem is that my Opera's console does not print anything out. alert
works.