Advertisement
Home Open Editor ❯

HTML onkeyup event 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">


Advertisement

Attribute Values

Value Description
script Specifies the script to be run on onkeyup

Technical Details

Supported HTML elements:

All HTML elements, EXCEPT: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, and <title>
Home Open Editor ❯
Advertisement