JavaScript KeyboardEvent Properties
You are Here:
JavaScript KeyboardEvent Properties
The following are the list of KeyboardEvent properties available in JavaScript programming.
Functions | Explanation |
---|---|
altKey | Indicates whether the alt key was pressed or not when the event occured. |
code | Returns the key that triggered the event. |
ctrlKey | Indicates whether the ctrl key was pressed or not when the event occured. |
shiftKey | Indicates whether the shift key was pressed or not when the event occured. |
metaKey | Indicates whether the meta key was pressed or not when the event occured. |
key | Returns the value of the key pressed by the user when a key event occured. |
location | Returns a number that indicates the location of a key on the keyboard or other input device. |
which | Returns the numeric keyCode of the key pressed, or the character code (charCode) for an alphanumeric key pressed. |
Reminder
Hi Developers, we almost covered 97% of JavaScript Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in JavaScript.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.