0

Get typing output

How we get the output which starts typing our provided text after clicking a button.

22nd Dec 2020, 1:29 PM
Anurag Chaurasiya
Anurag Chaurasiya - avatar
5 Respostas
+ 2
Add a keypress event handler to the window and you can capture all the keys typed while anything in the page is in focus. Then you can append what the user types to a string. If you don't mind showing what is typed, use an input type="text" and put it in focus when the button is clicked. This will be easier to use and develop than listening to the keyboard and maintaining a hidden string.
22nd Dec 2020, 1:31 PM
Josh Greig
Josh Greig - avatar
+ 2
Anurag Chaurasiya Check this tutorial created by me Hope this helps https://code.sololearn.com/WUfKwT785jx0/?ref=app
8th Jan 2021, 11:56 AM
Krish
Krish - avatar
+ 1
Anurag Chaurasiya please explain your question well
22nd Dec 2020, 1:48 PM
Krish
Krish - avatar
0
Josh Greig Thanks 😇
22nd Dec 2020, 2:40 PM
Anurag Chaurasiya
Anurag Chaurasiya - avatar