onKeyRelease( )


Adds an event handler that runs when the key is released within an input.

You can also define an event handler using the Properties and Events panel. This will automatically add the required code for the selected element and event.

Notes:

  • Some browsers do not issue a key release event for certain keys, such as arrow keys or the shift key.

  • When you retrieve the value from the target property of a KeyboardEvent, you get the value of the target element before the key was released.

Method Declaration
Copy
Method Parameters
handlerfunctionRequired

handler(): void The name of the function or the function expression to run when the element is clicked.

Returns
Return Type:Element
Was this helpful?
Yes
No