How to access keyboard key with javascript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to access keyboard key with javascript

its challenge to automatically pressed keyboard key with javscript help

24th Aug 2018, 3:48 PM
Jitender Kashyap
Jitender Kashyap - avatar
3 Answers
+ 1
Every key has it's code and value. When a key is pressed, it just sends the keyCode. So, I think, in order to automate the keypress you just need to make keyCode manually.
25th Aug 2018, 1:33 AM
Шащи Ранжан
Шащи Ранжан - avatar
+ 1
This shows you how to detect keyboard keys https://code.sololearn.com/WmDpvq022rZX/?ref=app
25th Aug 2018, 5:40 AM
Calviղ
Calviղ - avatar
0
but i want to dont touch keyboard key its automatically pressed keyboard key value on the web page
25th Aug 2018, 2:31 AM
Jitender Kashyap
Jitender Kashyap - avatar