HTML | onkeydown Event Attribute
This onkeydown event attribute works when user presses any key from the keyboard.
Supported Tags: It supports all HTML elements EXCEPT-
<element onkeydown = "script">
Attribute Value: This attribute contains single value script which works when any key pressed from the keyboard.
Supported Tags: It is supported by all HTML elements except <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, and <title>.
Press the key:
Release the key:
Supported Browser: The browser supported by onkeydown event attribute are listed below:
- Internet Explorer
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.