Jump to content

What is the difference between onkeyup and oninput JavaScript events?


Ivan Ivković

Recommended Posts

Mozilla says this about oninput

This event is sent when a user enters text in a textbox . This event is only called when the text displayed would change, thus it is not called when the user presses non-displayable keys.

 

Whereas the onkeyup is described as

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

 

So there is your difference. :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.