JavaScript KeyboardEvent Properties

You are Here:

JavaScript KeyboardEvent Properties

The following are the list of KeyboardEvent properties available in JavaScript programming.

FunctionsExplanation
altKeyIndicates whether the alt key was pressed or not when the event occured.
codeReturns the key that triggered the event.
ctrlKeyIndicates whether the ctrl key was pressed or not when the event occured.
shiftKeyIndicates whether the shift key was pressed or not when the event occured.
metaKeyIndicates whether the meta key was pressed or not when the event occured.
keyReturns the value of the key pressed by the user when a key event occured.
locationReturns a number that indicates the location of a key on the keyboard or other input device.
whichReturns 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.

Share this Page

Meet the Author