|Property/method value type:||Boolean primitive|
|HTML syntax:||<AREA onKeyUp="..."> <BODY onKeyUp="..."> <HTMLTag onKeyUp="..."> <IMG onKeyUp="..."> <INPUT onKeyUp="...">|
|Argument list:||aHandler||A reference to a function object to handle the event|
As the key is released, this event is triggered.
In Netscape, the key code of the key that triggered the event is available in the which property of the Event object that is passed to the event handler as an argument. The equivalent value in MSIE is available in the keyCode property of the event object referenced by the window.event property.
The key value is the Unicode character code point value, which is a numeric value. This may need to be converted to a character if you want to display it. You can do that with the String.fromCharCode() static method, which will create a one character string for you.
You may need to determine whether any of the modifier keys were pressed. In Netscape, you retrieve a bitmask value from the modifiers property of the Event object. This can then be masked against the various bit flags available as static properties of the Event class.
In MSIE, modifier keys are available with a set of properties that return the state of each modifier key individually.
In MSIE, you can modify the value of the key that is passed back to the browser by storing a different Unicode code point value in the returnValue property of the Event object.