HTML5 oninput event is supported by some modern browsers, including Firefox 3.X
However, oddly enough, it only works with built-in javascript:
<input id = "q" oninput="alert('blah')">
When I try to install it using javascript code, it fails.
var q = document.getElementById("q"); q.oninput = function(){alert("blah");};
Is this just a bug in Firefox, or is there some reason?
javascript html5 firefox javascript-events
Channel72
source share