Advertisement
Home Open Editor ❯

HTML onkeyup Attribute

Example

<input type="text" id="fname" onkeyup="myFunction()">

Try this code ❯

Meaning

The onkeyup attribute specifies the script run when a user releases a key.

Related Keyboard Events


Standard Syntax

<element onkeyup="script">


Applies to:

The onkeyup attribute can be used on the following element:

Element Attribute
All HTML elements. onkeyup

Advertisement

Attribute Values

Value Description
script Specifies the script to be run on onkeyup
Home Open Editor ❯
Advertisement