Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML onkeyup Event Attribute

HTML onkeyup Event Attribute

HTML Event Attributes HTML Event Attributes

Example

Run a script when a key is released:

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the onkeyup event attribute


Definition and Usage

The onkeyup attribute is triggered when the user releases a key (on the keyboard).

Tip: The event firing order related to the onkeyup event:

  1. onkeydown
  2. onkeypress
  3. onkeyup

Note: The onkeyup attribute cannot be used with the following elements:, ,
, , ,