How to Detect User Input with JavaScript
HTML-код
- Опубликовано: 1 ноя 2022
- In today's video I'll be going over a few techniques to detect changes to input fields or keyboard events with JavaScript. This is perfect for instant form validation or building games on the web.
The 4 events covered are onchange, oninput, onkeydown and onkeyup.
For your reference, check this out:
developer.mozilla.org/en-US/d...
🏫 My Udemy Courses - www.udemy.com/user/domenic-co...
🎨 Download my VS Code theme - marketplace.visualstudio.com/...
💜 Join my Discord Server - / discord
🐦 Find me on Twitter - / dcodeyt
💸 Support me on Patreon - / dcode
📰 Follow me on DEV Community - dev.to/dcodeyt
📹 Join this channel to get access to perks - / @dcode-software
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
This is such a good video. You explain it so simple. Thank you!!!
Awesome demos
Great stuff! 👍👍
Thank you. It's helpful.
You are great!
I use keyup event to change lowercase to uppercase from user input so the user can notice the animation
You are amazing!.
Thanks to this
Most welcome 😊
Awesome
You're my fav one developer
😎
Congrats for 100K subscriber 🎉
Thank you 🙌
Thanks for sharing Dom. You missed the "keypress" event.
No problem. "keypress" is deprecated:
developer.mozilla.org/en-US/docs/Web/API/Element/keypress_event
@@dcode-software Thank You 🙇
How would I go about getting input from the console? Also, congrats on 100k :)
Hey, you can use prompt() to get input from the user using only JavaScript. Thank you!
@@dcode-software AH, thanks!
Solved my bugs. * * * * *. in under a minute. I had to use event 'input' instead of 'change' to make a button work as expected.
mmm "How to write the simplest Keylogger" 😁???
"Web Dev Made Easy" on youtube is stealing your tutorials and selling your source code in the description.... get ur bag sir
Thank you for letting me know ☺️
@@dcode-software your a way better teacher than him, i cant listening to him talk. and he doesnt explain anything well. lol :P