What are Keyboard Event Attributes in HTML
In this article we will discuss about what are keyboard event attributes in HTML.
There are some standard keyboard Events. Keyboard Events occur when we press some keys on the keyboard but there are some element in the HTML for which these Keyboard events are not valid like title, style, script, param, meta, iframe, html, head, html, frame, frameset, br, bdo, base. There is the List of some standard keyboard event attributes and these are:
Keyboard event Attributes:
Event attribute |
Value |
Explanation |
onkeypress |
Script |
When a key is pressed or released on the keyboard a script will be run. |
onkeydown |
Script |
When a key is pressed a script will be run. |
onkeyup |
Script |
When a key will be released a script will be run. |
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here