onKeyUp

Arguments

eventKeyboardEvent Object

An object that contains information about the keyboard event, such as the key that was pressed. The properties available to you in this object are defined and set by the client's browser.

Description

This event fires when the user types a character in an editable field. The event fires when the key is released.

Discussion

The onKeyUp event fires when the user releases a key that has been pressed. It is the last event to fire after the onKeyDown and onKeyPress events.

You can add Action Javascript, custom JavaScript, or sever-side Xbasic to execute one or more actions to this event.

For more information about keyboard events, see Mozilla's documentation on KeyboardEvents or the developer documentation for your favorite web browser.

Example

if (event.keyCode == 13) {
    // Enter key has been pressed
}

See Also