Hi. I know the basic way to assign event handlers:
<input onKeyUp="proces sEvent(event)" />
But how do I assign a function to the onKeyUp event in *javascript*
that can access the event object?
// get inputElement
alert("Some java script code");
inputElement.on keyup = ????;
I know how to assign generic functions. This works:
inputElement.on keyup = function() { alert("hello"); };
But how in the world do I assign a function that captures the "event"
object? I want something like:
inputElement.on keyup = function(event) { processEvent(ev ent) };
But that doesn't work right. Any ideas?