EVENT.TARGET, in JavaScript, Simplified

Поділитися
Вставка
  • Опубліковано 15 лис 2024

КОМЕНТАРІ • 113

  • @deeecode
    @deeecode  Рік тому

    Check out my JavaScript Simplified playlist where I simplify different concepts in JavaScript: ua-cam.com/play/PLLdz3KlabJv0TBKCbF9aSxIpCxsLiFhEv.html

  • @Kivencito
    @Kivencito Рік тому +7

    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 Рік тому +5

    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 2 місяці тому

    your teaching is next level bro, keep doing, you will have million subs

  • @AvidAfrican
    @AvidAfrican Рік тому +1

    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  Рік тому

      Hahah thank you so much and welcome!

  • @marypaul9627
    @marypaul9627 6 місяців тому

    Elements receives different forms of events in the DOM! That opening line explains it all thank you, have subscribed!

    • @deeecode
      @deeecode  5 місяців тому

      I’m so glad to hear ✨

  • @hybs9473
    @hybs9473 2 роки тому +5

    Thank you for doing this my man Dee! I appreciate it very much. Looking forward for more tutorials from you.

    • @deeecode
      @deeecode  2 роки тому

      You're welcome 🙏🏾

  • @saurabhsinghpatel3090
    @saurabhsinghpatel3090 3 місяці тому

    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.

  • @explorewithpraveen
    @explorewithpraveen 7 місяців тому

    Thanks, there is only your video in you tube who explain the use of target deeply, again thanks

    • @deeecode
      @deeecode  6 місяців тому

      Glad it was helpful! You're welcome :)

  • @jamblob3208
    @jamblob3208 8 місяців тому

    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.

  • @chocolyte1950
    @chocolyte1950 Рік тому +1

    Thnx a lot sir love from india🇮🇳🇮🇳

  • @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!

  • @tanoypaul
    @tanoypaul 6 місяців тому

    Thanks teacher , I was struggling from this exact thing ! You made it much more easier for me

    • @deeecode
      @deeecode  6 місяців тому

      You're very welcome! I'm so so glad to help

  • @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

  • @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

  • @aprendahebraicocomabiblia1090
    @aprendahebraicocomabiblia1090 8 місяців тому +1

    Simply awesome!

    • @deeecode
      @deeecode  5 місяців тому

      Thank you! Cheers!

  • @destinyifeanyichilaka6434
    @destinyifeanyichilaka6434 8 місяців тому

    This really made me understand more about event.target

  • @cescr3821
    @cescr3821 Рік тому

    came here for javascript tutorial, stayed for the accent, but no joke the video is great thank you.

    • @deeecode
      @deeecode  Рік тому +2

      Haha glad you liked my accent. and thanks for the feedback regarding the video

    • @FineTech-l6o
      @FineTech-l6o Рік тому

      @@deeecode naija accent i am gussing, leaning javascript too, thank for the video by the way

  • @likkino4573
    @likkino4573 27 днів тому

    this is the best video on this topic

  • @Paulina-sc1xd
    @Paulina-sc1xd 3 місяці тому

    Thank you very much for this video, it was very helpful👍

  • @pauledukere8353
    @pauledukere8353 9 місяців тому

    Wow.. nice explaination.. I have definitely learnt something

  • @isaacaninta6551
    @isaacaninta6551 8 місяців тому

    Really love this guy ❤❤❤❤.

  • @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?

  • @famero_xo
    @famero_xo 5 місяців тому

    Really helpful, thanks and well-done 🎉❤

    • @deeecode
      @deeecode  5 місяців тому

      Glad you enjoyed it!

  • @iamnottech8918
    @iamnottech8918 7 місяців тому

    I really thought the same but I was doubtful but now I am sure

    • @deeecode
      @deeecode  7 місяців тому

      You're very welcome!

  • @nagarjuna5557
    @nagarjuna5557 11 місяців тому

    Wow, bro it's easy to understand thank you

    • @deeecode
      @deeecode  11 місяців тому

      I'm so glad to hear this...you're welcome!

  • @JhonLogix
    @JhonLogix Рік тому

    Very well explained! Thanks for sharing this with us. Keep it up champ!

    • @deeecode
      @deeecode  Рік тому +1

      Glad you liked it! You're welcome

  • @Petersonbabs
    @Petersonbabs Рік тому

    You're good boss. Would like to see a video of how you create content

    • @deeecode
      @deeecode  11 місяців тому +1

      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 10 місяців тому

      @@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  10 місяців тому +1

      @@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: ua-cam.com/video/a32fbqPNir4/v-deo.html

    • @Petersonbabs
      @Petersonbabs 10 місяців тому

      @@deeecode thank you

  • @zachmathias26
    @zachmathias26 Рік тому

    any reason why you used query selector opposed to getElementById?

    • @deeecode
      @deeecode  Рік тому +2

      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

  • @davidezih3510
    @davidezih3510 Рік тому

    Bro!! You're good! love the explanations...

    • @deeecode
      @deeecode  Рік тому +1

      Thank you so much for this feedback. I'm glad you love it

  • @jamblob3208
    @jamblob3208 8 місяців тому

    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.

  • @imanariyobaptiste8177
    @imanariyobaptiste8177 Рік тому

    practical explained bro keep it up

    • @deeecode
      @deeecode  11 місяців тому

      Thank youuu

  • @codingsenpai
    @codingsenpai Рік тому

    Thank you, man, so useful !👏

    • @deeecode
      @deeecode  11 місяців тому

      Glad to hear :)

  • @archonarchon6613
    @archonarchon6613 7 місяців тому

    wow nice explanation👍👍👍

    • @deeecode
      @deeecode  6 місяців тому

      I'm so glad you enjoyed it ;)

  • @dinasalah855
    @dinasalah855 Рік тому

    Wow that is super amazing …thanx🙏

    • @deeecode
      @deeecode  Рік тому

      Glad you like it. You're welcome!

  • @louiebridges174
    @louiebridges174 6 місяців тому

    Thank you so much!!

    • @deeecode
      @deeecode  5 місяців тому

      You’re welcome :)

  • @noobme1068
    @noobme1068 Рік тому

    well explained.Thank you!

  • @nabeelkhan-dp2fc
    @nabeelkhan-dp2fc Рік тому

    nicely explained buddy...thanks

  • @TEJASSADADE
    @TEJASSADADE Рік тому

    love from india

  • @binhors6854
    @binhors6854 Рік тому

    THANK YOU MAN< BRASIL LOVES YOU

    • @deeecode
      @deeecode  Рік тому

      thank you so much 🥹

  • @yaniquedickson8276
    @yaniquedickson8276 4 місяці тому

    thank you!

  • @fabrice9848
    @fabrice9848 Рік тому

    Thank you.

  • @Spunky_Tx
    @Spunky_Tx 2 місяці тому

    Thanks man

  • @marielfigueroacolmenares1869

    Clarísimo, gracias!!

  • @ricko13
    @ricko13 Рік тому

    nice explanation bro

  • @BSITVinluanEner
    @BSITVinluanEner Рік тому

    Thaks bro

  • @w23music17
    @w23music17 Рік тому

    Thanks bro..

  • @Dee_Dev
    @Dee_Dev 10 місяців тому

    Please 🙏 make a video on html data attributes and dataset methods please @deeecode

  • @bananabread6758
    @bananabread6758 Рік тому

    very good

  • @MatheusPereira-nn9dj
    @MatheusPereira-nn9dj Рік тому

    Awsome content 🔥

  • @mnnw148
    @mnnw148 Рік тому

    Great 😊

    • @deeecode
      @deeecode  11 місяців тому

      You're welcome

  • @enibondarenko1233
    @enibondarenko1233 Рік тому

    super helpful

  • @ormtosteson9553
    @ormtosteson9553 8 місяців тому

    Nice explanation and examples

  • @therobber
    @therobber Рік тому

    Amazing

  • @vikitalk
    @vikitalk Рік тому

    thanks sir

  • @devSackey
    @devSackey 6 місяців тому

    Lucid Explanation

  • @hexgrade177
    @hexgrade177 Рік тому

    W tutorial

    • @deeecode
      @deeecode  Рік тому

      Nice to know. Thank you

  • @iamvictorjack
    @iamvictorjack Рік тому

    Explanation is clean but I’m still confused 🥲

    • @deeecode
      @deeecode  Рік тому

      Hi, In what way are you confused? 🤔

  • @CecíliaCastrodosSantos
    @CecíliaCastrodosSantos Рік тому

    very nice

    • @deeecode
      @deeecode  11 місяців тому

      you're welcome