Тёмный

EVENT.TARGET, in JavaScript, Simplified 

Deeecode The Web
Подписаться 12 тыс.
Просмотров 23 тыс.
50% 1

When handling events, an event object, containing all the information about the event, is passed to the callback function you provide. One major property of this event object, is the target property, which contains information about the element that received the event.
In this video, I use examples to explain this property and show why its relevant.
Useful links:
- querySelector explained: • HOW TO SELECT DOM ELEM...
- Event Bubbling: • Event Bubbling in Java...
- Event Delegation: • Event Delegation in Ja...
- Object Destructuring: • Object Destructuring S...
Check out my JavaScript Simplified playlist where I simplify different concepts in JavaScript: • JavaScript Simplified
_____
Subscribe to My Channel: bit.ly/deeecode
_____
🌟 About Me:
Dillion Megida, creator of DEEECODE, is a Software Engineer, Developer Advocate and a Content Creator passionate about simplifying topics around Tech via articles and videos.
_____
⚡️ Connect with me:
- Personal youtube: / dillionmegida
- Personal website: dillionmegida....
- Twitter: / iamdillion
- Instagram: / deeecode
- LinkedIn: / dillionmegida
- GitHub: github.com/dil...
_____
#deeecode

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 112   
@deeecode
@deeecode Год назад
Check out my JavaScript Simplified playlist where I simplify different concepts in JavaScript: ru-vid.com/group/PLLdz3KlabJv0TBKCbF9aSxIpCxsLiFhEv
@Kivencito
@Kivencito Год назад
Brother... I'm starting in JS and I had this problem with the onload method... after 2 days trying, this was my solution. THANKS!
@deeecode
@deeecode Год назад
I'm so so so glad to hear this feedback. You're welcome. Feel free to share topics you'd like me to make videos about.
@archangel4894
@archangel4894 Год назад
Bro, your tutorial is much easier to understand than other tutorial I previously watched. Thanks to you!
@deeecode
@deeecode Год назад
I'm so so glad to hear this! Thanks for the feedback, and I'm glad you found it easier.
@noozytechz
@noozytechz 23 дня назад
your teaching is next level bro, keep doing, you will have million subs
@saurabhsinghpatel3090
@saurabhsinghpatel3090 Месяц назад
Love from india , you are just amazing , loved the way of explanation you have resolved my doubt and gave a detailed explanation with the use case , that helped a lot.Thanks a lot man.Keep doing this amazing work.
@hybs9473
@hybs9473 Год назад
Thank you for doing this my man Dee! I appreciate it very much. Looking forward for more tutorials from you.
@deeecode
@deeecode Год назад
You're welcome 🙏🏾
@explorewithpraveen
@explorewithpraveen 5 месяцев назад
Thanks, there is only your video in you tube who explain the use of target deeply, again thanks
@deeecode
@deeecode 4 месяца назад
Glad it was helpful! You're welcome :)
@marypaul9627
@marypaul9627 4 месяца назад
Elements receives different forms of events in the DOM! That opening line explains it all thank you, have subscribed!
@deeecode
@deeecode 3 месяца назад
I’m so glad to hear ✨
@AvidAfrican
@AvidAfrican Год назад
I swear this guy is Nigerian! And you explain it better and what happened after calling the function i just subscribed to your channel as a fellow Nigerian! Bro teach us more.... break it down bro!
@deeecode
@deeecode 10 месяцев назад
Hahah thank you so much and welcome!
@jamblob3208
@jamblob3208 5 месяцев назад
I had done this a few way before but remembering and doing it differently shows problems as well as unexpected solutions. This was the inspiration, bubbling along next to it. yipety doo.
@tanoypaul
@tanoypaul 4 месяца назад
Thanks teacher , I was struggling from this exact thing ! You made it much more easier for me
@deeecode
@deeecode 4 месяца назад
You're very welcome! I'm so so glad to help
@mariopizzaro
@mariopizzaro Год назад
Hi mate, you can really explain stuff in a very easy-to-understand way, thank you ! Greetings from N.Ireland
@deeecode
@deeecode Год назад
Heyyy...Greetings from the Netherlands. Thank you so much for the kind feedback. I'm so glad you enjoyed this
@CLeovison
@CLeovison Год назад
This is the kind of tutorial that i need. Well explained. Thank you so much maaan!
@deeecode
@deeecode Год назад
You're welcome! So glad to hear
@Paulina-sc1xd
@Paulina-sc1xd Месяц назад
Thank you very much for this video, it was very helpful👍
@caioluna9229
@caioluna9229 Год назад
Thank you! My college teacher doesn't explained to me that, only passed the answer, and I was struggling to understand by myself how and why this works.
@deeecode
@deeecode Год назад
I'm so glad to hear that this was helpful!
@chocolyte1950
@chocolyte1950 Год назад
Thnx a lot sir love from india🇮🇳🇮🇳
@deeecode
@deeecode 11 месяцев назад
You're very welcome!
@destinyifeanyichilaka6434
@destinyifeanyichilaka6434 6 месяцев назад
This really made me understand more about event.target
@pauledukere8353
@pauledukere8353 7 месяцев назад
Wow.. nice explaination.. I have definitely learnt something
@isaacaninta6551
@isaacaninta6551 6 месяцев назад
Really love this guy ❤❤❤❤.
@famero_xo
@famero_xo 3 месяца назад
Really helpful, thanks and well-done 🎉❤
@deeecode
@deeecode 3 месяца назад
Glad you enjoyed it!
@JhonLogix
@JhonLogix Год назад
Very well explained! Thanks for sharing this with us. Keep it up champ!
@deeecode
@deeecode Год назад
Glad you liked it! You're welcome
@aprendahebraicocomabiblia1090
@aprendahebraicocomabiblia1090 6 месяцев назад
Simply awesome!
@deeecode
@deeecode 3 месяца назад
Thank you! Cheers!
@nagarjuna5557
@nagarjuna5557 9 месяцев назад
Wow, bro it's easy to understand thank you
@deeecode
@deeecode 9 месяцев назад
I'm so glad to hear this...you're welcome!
@cescr3821
@cescr3821 Год назад
came here for javascript tutorial, stayed for the accent, but no joke the video is great thank you.
@deeecode
@deeecode Год назад
Haha glad you liked my accent. and thanks for the feedback regarding the video
@avalonstudio2753
@avalonstudio2753 Год назад
@@deeecode naija accent i am gussing, leaning javascript too, thank for the video by the way
@Petersonbabs
@Petersonbabs 10 месяцев назад
You're good boss. Would like to see a video of how you create content
@deeecode
@deeecode 9 месяцев назад
Coming back to this comment, I'll make a video on this to wrap up the year :) Will let you know when published
@Petersonbabs
@Petersonbabs 8 месяцев назад
@@deeecode is it out now boss. Really would love to such content.. How you come up with ideas, plan your content, film, edit.. advice Would really help...
@deeecode
@deeecode 8 месяцев назад
@@Petersonbabs Hi...so sorry I couldn't publish it before the new year like I said I would. But here's the video live now: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-a32fbqPNir4.html
@Petersonbabs
@Petersonbabs 8 месяцев назад
@@deeecode thank you
@davidezih3510
@davidezih3510 Год назад
Bro!! You're good! love the explanations...
@deeecode
@deeecode Год назад
Thank you so much for this feedback. I'm glad you love it
@imanariyobaptiste8177
@imanariyobaptiste8177 Год назад
practical explained bro keep it up
@deeecode
@deeecode 9 месяцев назад
Thank youuu
@jamblob3208
@jamblob3208 5 месяцев назад
Tricky stuff. Syntax n all that on top of the why should I need it. I thought this was revision of a hard day but the same errors for me showing how hard it is to know how to alter things just slightly.
@iamnottech8918
@iamnottech8918 5 месяцев назад
I really thought the same but I was doubtful but now I am sure
@deeecode
@deeecode 5 месяцев назад
You're very welcome!
@archonarchon6613
@archonarchon6613 5 месяцев назад
wow nice explanation👍👍👍
@deeecode
@deeecode 4 месяца назад
I'm so glad you enjoyed it ;)
@relaxsongwithjeff1263
@relaxsongwithjeff1263 Год назад
Hello I'm having an error with this. Could you explain it to me why? I'm getting the name Id and assigning it to a variable here. Const nameId = document.getElementById("nameId"); And then i have an event listener that listen to the assigned element above. nameId.addEventListener("keyup", () => { function(); // this function execute when this event is made }); Now I'm having this (Uncaught TypeError: nameId is null) whenever I'm on a different page on my web. But when I'm on the where this code is being used I'm not having that error. What i did is i wrap the event listener to an if statement checking if the nameId is not null then execute the event. Is there any other way i could do this?
@codingsenpai
@codingsenpai Год назад
Thank you, man, so useful !👏
@deeecode
@deeecode 9 месяцев назад
Glad to hear :)
@louiebridges174
@louiebridges174 4 месяца назад
Thank you so much!!
@deeecode
@deeecode 3 месяца назад
You’re welcome :)
@dinasalah855
@dinasalah855 Год назад
Wow that is super amazing …thanx🙏
@deeecode
@deeecode Год назад
Glad you like it. You're welcome!
@nabeelkhan-dp2fc
@nabeelkhan-dp2fc Год назад
nicely explained buddy...thanks
@deeecode
@deeecode Год назад
glad you found it so
@noobme1068
@noobme1068 Год назад
well explained.Thank you!
@deeecode
@deeecode Год назад
You're welcome!
@yaniquedickson8276
@yaniquedickson8276 2 месяца назад
thank you!
@Spunky_Tx
@Spunky_Tx 25 дней назад
Thanks man
@fabrice9848
@fabrice9848 Год назад
Thank you.
@deeecode
@deeecode Год назад
You're welcome!
@zachmathias26
@zachmathias26 Год назад
any reason why you used query selector opposed to getElementById?
@deeecode
@deeecode Год назад
there was no specific reason. i've found myself liking querySelector when I want to do any element query (from classes to ids to attributes), and I also wanted to show in this video that there are multiple ways you can get elements from the DOM
@w23music17
@w23music17 Год назад
Thanks bro..
@deeecode
@deeecode Год назад
You're welcome :)
@marielfigueroacolmenares1869
Clarísimo, gracias!!
@deeecode
@deeecode Год назад
You're welcome
@BSITVinluanEner
@BSITVinluanEner Год назад
Thaks bro
@deeecode
@deeecode Год назад
you're welcome
@mnnw148
@mnnw148 Год назад
Great 😊
@deeecode
@deeecode 9 месяцев назад
You're welcome
@bananabread6758
@bananabread6758 Год назад
very good
@deeecode
@deeecode Год назад
Thank you! Cheers!
@binhors6854
@binhors6854 Год назад
THANK YOU MAN< BRASIL LOVES YOU
@deeecode
@deeecode Год назад
thank you so much 🥹
@TEJASSADADE
@TEJASSADADE Год назад
love from india
@deeecode
@deeecode Год назад
Thank youuuuuuuu!
@ricko13
@ricko13 Год назад
nice explanation bro
@deeecode
@deeecode Год назад
Glad you liked it
@enibondarenko1233
@enibondarenko1233 Год назад
super helpful
@deeecode
@deeecode Год назад
Glad it helped!
@therobber
@therobber Год назад
Amazing
@deeecode
@deeecode Год назад
Thank you! Cheers!
@vikitalk
@vikitalk 11 месяцев назад
thanks sir
@deeecode
@deeecode 11 месяцев назад
Most welcome
@Dee_Dev
@Dee_Dev 8 месяцев назад
Please 🙏 make a video on html data attributes and dataset methods please @deeecode
@MatheusPereira-nn9dj
@MatheusPereira-nn9dj Год назад
Awsome content 🔥
@deeecode
@deeecode Год назад
You're welcome :)
@devSackey
@devSackey 4 месяца назад
Lucid Explanation
@hexgrade177
@hexgrade177 Год назад
W tutorial
@deeecode
@deeecode Год назад
Nice to know. Thank you
@ormtosteson9553
@ormtosteson9553 6 месяцев назад
Nice explanation and examples
@iamvictorjack
@iamvictorjack 11 месяцев назад
Explanation is clean but I’m still confused 🥲
@deeecode
@deeecode 11 месяцев назад
Hi, In what way are you confused? 🤔
@CecíliaCastrodosSantos
@CecíliaCastrodosSantos Год назад
very nice
@deeecode
@deeecode 9 месяцев назад
you're welcome
Далее
3 Ways to Merge Arrays, in JavaScript
6:09
Learn JavaScript Event Listeners In 18 Minutes
18:03
Просмотров 585 тыс.
Event Bubbling in JavaScript, Simplified
5:00
Просмотров 16 тыс.
Vim Tips I Wish I Knew Earlier
23:00
Просмотров 64 тыс.
5 JavaScript Concepts You HAVE TO KNOW
9:38
Просмотров 1,4 млн
DOM API - JavaScript Tutorial for beginners
42:17
Просмотров 33 тыс.
Most Beginner React Developers Do This Wrong
13:47
Просмотров 232 тыс.
Minimum Size Subarray Sum | Group Solution
14:03