How to Interact With the Keyboard - JavaScript Tutorial for Beginners

preview_player
Показать описание
In today's video, we're going to have a look at interacting with the keyboard using JavaScript within the browser. More specifically, I'm going to take you through the different available keyboard events such as 'keydown' and 'keypress' as well as the keyboard event object.

For your reference, check this out:

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!

#dcode #javascript
Рекомендации по теме
Комментарии
Автор

Thanks man! I was watching a class I brought and the code was depreciated. This was helpful! TY

sherrickmcneal
Автор

Impressively clear explanation. Thanks!

KentFiala
Автор

Very straightforward and easy to follow

treypickens
Автор

Great video, very to the point and easy to understand.

LGR_FGC
Автор

It's a good video and explanation is also good

SIShaon-xxbk
Автор

First.... LOL
Videos on Web APIs are always useful.
Could you cover "touch" events in your next video? They are important for tables and phones.

douglascounts
Автор

When we type in Win+K, it opens up some windows settings window in the background. even when the prevent event was called. Is there anything else we should be writing to achieve it?

haroldbright
Автор

yaah cool, but i used if conditions inside the event listener to be able to detect multiple shortcuts, but that resulted in weird behaviors and unexpected bugs

prizam_music
Автор

Great Video.
Could you please support me as i want to simulate "Tab" keyboard click through javascript, but it didn't work fine.
const kbEvent = new KeyboardEvent('keydown', { keyCode: 9, });

basemabdellatiff