Keyboard Event Attributes



Keyboard Event Attributes are the events happens as a result of keys are pressed and released.
These events are applicable to all the elements in HTML5.
List of available attributes:
onkeydown Script Script will be executed when a key in keyboard is pressed down.
onkeypress Script Once user presses a key then the functioned will be called and script will be executed.
onkeyup Script When a key is pressed and released then the script will be executed.

Ask Questions

Ask Question