Reputation: 35750
I'm trying to listen to "oninput" event, but something is wrong with Opera:
document.getElementById("i1").oninput = function(){
console.log("inputting");
};
document.getElementById("i1").addEventListener("input", function(){
console.log("inputting");
});
The first one works, but the second one doesn't work....it this a bug of opera?
Fiddle: http://jsfiddle.net/nn2zS/
Upvotes: 0
Views: 2098
Reputation: 35750
OK, I figured out this myself, addEventListener
has a 3rd parameter, it can be ignored in Chrome but not other browsers.
Upvotes: 1