Relawan kami belum menerjemahkan artikel ini ke bahasa Bahasa Indonesia. Bergabunglah dan bantu kami menyelesaikannya!
Anda juga dapat membaca artikel ini dalam English (US).

The onkeyup property returns the onKeyUp event handler code for the current element.

Syntax

element.onkeyup = event handling code

Example

 <input type="text" onKeyUp="keyWasPressed(event)">
 <script>function keyWasPressed(evt){ console.log(evt.keyCode) }</script>

Notes

The keyup event is raised when the user releases a key that's been pressed.

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'onkeyup' in that specification.
Living Standard  

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes Yes Yes ? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes Yes Yes ? ? ?

Tag Dokumen dan Kontributor

Terakhir diperbarui oleh: fscholz,