A Complete Overview of JavaScript Events - All You Need To Know

Sdílet
Vložit
  • čas přidán 27. 08. 2024

Komentáře • 94

  • @dcode-software
    @dcode-software  Před rokem +7

    *RELATED VIDEO: 5 POWERFUL JAVASCRIPT EVENTS*
    czcams.com/video/Vu60OLyLa-w/video.html
    🏷 *THE ULTIMATE JAVASCRIPT DOM CRASH COURSE* 👇
    www.udemy.com/course/the-ultimate-javascript-dom-crash-course/?referralCode=DC343E5C8ED163F337E1

  • @shariafarooqui5748
    @shariafarooqui5748 Před 3 lety +40

    Please continue this JavaScript series, really helpful!

  • @lastspoil5547
    @lastspoil5547 Před 10 měsíci +2

    This teacher give you real world examples from the start of the video! Thank you.

  • @beinyourguard
    @beinyourguard Před 3 lety +9

    You deserve more views! I learn a lot watching your videos

  • @thisisnotjoshiswear828
    @thisisnotjoshiswear828 Před 2 lety +6

    If anyone is curious, to access the boxDiv DOM Object using the arrow function, you can get it from the event object target property (e.target)

  • @alistairtrotter3461
    @alistairtrotter3461 Před 3 lety +4

    Great introduction video to events! really appreciate the effort you put into this!

  • @yevgeniyaterlyuk5248
    @yevgeniyaterlyuk5248 Před 2 lety +3

    Exactly what I needed! Thanks!

  • @chickenpotthighs9387
    @chickenpotthighs9387 Před 2 lety +2

    Hi dcode. Thank you for sharing your knowledge and clarifying about the event object !! Helps me a lot!

  • @codingSparrow143
    @codingSparrow143 Před 4 měsíci +1

    wow! very detailed and easy explanation. Thanks!! 💜💜

  • @parthasarathimoharana5282

    Indeed you are the best JS tutor Brother...Kudos

  • @this_is_joydip
    @this_is_joydip Před 3 měsíci

    Thank you so much! Make more on Events of js please ❤❤

  • @peterwafula3923
    @peterwafula3923 Před rokem +1

    Thank you so much for explaining so well.

  • @Marjolein_1979
    @Marjolein_1979 Před rokem

    I found the explanation of event object really useful.

  • @photoinshot1355
    @photoinshot1355 Před rokem +2

    Great video as ever thanks! Always well explained and very informative. Have you got a video on how to fire a functions on different events for example if I wanted to fire off a function on either , click, keyup or keydown with only one event listener rather than three? Thanks again.

  • @smitty1753
    @smitty1753 Před rokem

    Thank you for helping me understand this.

  • @sejalsankhe3786
    @sejalsankhe3786 Před 9 měsíci

    Thank you soo much for this video, it helped me a lot to understand that (e) heheh. i always used to be confused but now no more confusion. thanks a lot once again. 😄

  • @jedt1
    @jedt1 Před 2 lety

    thx very helpful video! made it easy to understand what the 'e' or event object is since i was seeing it a lot when learning javascript :D

    • @dcode-software
      @dcode-software  Před 2 lety

      That was the main motivation behind this video! Thanks for watching

  • @mcrmehmet
    @mcrmehmet Před 2 lety +2

    I must admit that I repeated the video several times when dcode pronounce "MouseEvent" 10:36 and says "Notice how it says mouse events" must be the coolest thing I heard this week :)
    Finally a great explanation about the event objects, the "e" or "ev" or "event" always got me confused. Now I am completely enlightened. My question is that isn't the "this" keyword supposed to act like a method under the object and refer to the object or act like a standard function and refer to the window or global. Really didn't get how it referred "boxDiv". Also, the difference of standard and arrow functions when used with "this" keyword. I was thinking both types of functions are supposed to be acting equal 100%. Probably I need to dig more.

    • @dcode-software
      @dcode-software  Před 2 lety +2

      Hey thanks! I got a video on "this" in JavaScript I suggest you check it out

    • @mcrmehmet
      @mcrmehmet Před 2 lety

      @@dcode-software Thanks Dom already jumped into "this"!

  • @BossPetta
    @BossPetta Před 2 lety +1

    Very useful, thanks! 🙏🏼

  • @Kaiseyo
    @Kaiseyo Před 2 lety

    Thank you! I needed this

  • @rostyslav5334
    @rostyslav5334 Před 3 lety +2

    'Like' instantly without even watching a video

  • @srinivasaraoyp3640
    @srinivasaraoyp3640 Před 11 měsíci

    Very interesting topic, thank you.

  • @MuhammadAdnan2.0
    @MuhammadAdnan2.0 Před 3 lety +3

    Sir come with an E-commerce shop with features filters , product details page , sorting products etc. Using only JS and firebase. ?

  • @adriansweg8092
    @adriansweg8092 Před 3 lety +1

    Gracias por el video! A veces se necesita que alguien lo explique de una manera diferente para entender los conceptos

  • @lyza2526
    @lyza2526 Před rokem

    Thank you. It's was helpful for me😊

  • @charlestoneoyoo
    @charlestoneoyoo Před 10 měsíci

    Great video, thank you

  • @CHRIST.REIGNS
    @CHRIST.REIGNS Před měsícem

    Thanks so much

  • @frednicholson
    @frednicholson Před 2 lety

    FWIW, was looking for multi-processing aspects of event handling. Mulitple event handlers, adding and deleting themselves from the event notification list, how is reentrancy handled, multiple event handlers, what if added twice, etc.

  • @shanilka_wariyapperuma

    This is GOLD!!! ❤❤

  • @newentu
    @newentu Před 7 měsíci

    Excelente curso men!!

  • @vesemechristiana5265
    @vesemechristiana5265 Před 10 měsíci

    Can anyone help me explain why my addEventListener is not working. Am using sublime text editor

  • @BlackFlux22
    @BlackFlux22 Před 2 lety

    Great tutorial, thank you

  • @muhendis_
    @muhendis_ Před 11 měsíci

    it was awesome video 💫

  • @GaetanoBarreca
    @GaetanoBarreca Před rokem

    Thanks!

  • @EnzoAuditore
    @EnzoAuditore Před 2 lety

    thank you for this.

  • @tamilmemerguy3200
    @tamilmemerguy3200 Před 7 měsíci

    Thanks

  • @onee
    @onee Před rokem +1

    I seem to get PointerEvent instead of the MouseEvent.

  • @bhagyashreekhairnar683

    thank you :)

  • @andreisavitski6145
    @andreisavitski6145 Před 10 měsíci

    Ok. talking about 'e' at 8:17. But why when you define your own event handler function you are obliged to specify a function argument there for passing the event into the function (Because MDN says its required, you can not reference event straight from the handler functions, for example, if you want to stopPropagation of the event, it gives error). While, when passing the handler function as argument in addEventListener , you can not pass an argument to the handler function, it gives an error at run time - i.e. you pass a handler function without passing any function argument to it "handleBoxClick" without "()" or "(e)"? I am a beginner, I do not understand it... the function must be defined with an argument, but when invoking the function no argument parameter passed to the function.... It feels weird and wrong... I do not know.

    • @andreisavitski6145
      @andreisavitski6145 Před 10 měsíci

      Ok ChatGPT explained it to me clearly...
      "The reason you specify an argument parameter (in this case, event) in the definition of the event handler function but don't pass any arguments when calling it is due to how event listeners work in JavaScript.
      Event listeners are a mechanism provided by the browser's DOM (Document Object Model) API. When you attach an event listener to an element and specify a function as the handler, the browser itself will call that function when the event occurs, and it will automatically pass an event object as an argument to the function.
      So, when you define an event handler function, you're telling the browser, "When a 'click' event occurs on this element (box), call the handleBoxClick function and pass the event object automatically."
      The browser takes care of passing the event object, and you can access it within the handleBoxClick function as if you had passed it explicitly. This is part of how the DOM event handling system is designed to work in JavaScript, making it convenient for developers to work with events without manually passing event objects each time."

  • @GoatCS
    @GoatCS Před 7 měsíci

    What VS code theme is that?

  • @esnapeye7098
    @esnapeye7098 Před 3 lety

    How to call multiple functions parallely when multiple buttons invoking their respective functions are pressed together??

  • @vesemechristiana5265
    @vesemechristiana5265 Před 10 měsíci

    Thanks alot

  • @Martin958
    @Martin958 Před 3 lety +1

    Can you do a list of vids about Functions (all types inc. Anonymous, Self-invoking etc), Callbacks, Asynchronous JS, Promises, Async/Await and AJAX? Maybe one day.

    • @dcode-software
      @dcode-software  Před 3 lety +1

      I've got a few videos on those topics, particularly promises and the async/await syntax.

    • @Martin958
      @Martin958 Před 3 lety

      @@dcode-software I need to go through your list more. I already saw the XML Http request series which is amazing. To round it off we just need some vids on how to make an AJAX chatroom.

  • @nkhanhle8968
    @nkhanhle8968 Před rokem

    Thank you so much!!!!

  • @muneeburrehman4690
    @muneeburrehman4690 Před 2 lety

    Thank you!

  • @curlyt8198
    @curlyt8198 Před 2 lety

    Thank you very much 😃😍 !!!!!

  • @akshadrathod9203
    @akshadrathod9203 Před rokem

    nice one

  • @haleynaga5671
    @haleynaga5671 Před 11 měsíci

    Amazing!

  • @alvarobusquets
    @alvarobusquets Před rokem

    Who needs this while chat gpt can solve everything

  • @noxius7332
    @noxius7332 Před 3 lety +1

    Saludos desde argentina 😎👍🇦🇷🇦🇷🇦🇷

  • @muhammadans2193
    @muhammadans2193 Před 3 lety

    please make a video on client-side form validation

  • @balenmohammed1657
    @balenmohammed1657 Před 2 lety

    Brilliant

  • @oceanview3165
    @oceanview3165 Před rokem

    Which vs code color extension did you use?

  • @justtestingmycurrentskills747

    Nice Video

  • @sdaiwepm
    @sdaiwepm Před 10 měsíci

    0:29 I see what you did there.

  • @ajithkumarv603
    @ajithkumarv603 Před 2 lety

    Wow awesome

  • @folatech4404
    @folatech4404 Před 2 lety

    hey sir can you help me with a session on js I am working on creating a calculator

  • @logaimat5362
    @logaimat5362 Před 3 měsíci +2

    pls next time use dark mode !!!

  • @farhadcohan8867
    @farhadcohan8867 Před měsícem

    Why aren’t using external js file you making beginners confuse

  • @brian9790
    @brian9790 Před rokem

    Title "Complete overview" - "all you need to know"
    Thumb "Basics"
    Video "absolute less than basics"

  • @Dexter101x
    @Dexter101x Před 3 lety

    And I only found a particular even like yesterday, after searching for like billions of years of trying to code javascript. And it was only by luck as it would happen

    • @dcode-software
      @dcode-software  Před 3 lety +1

      Which event was it?

    • @Dexter101x
      @Dexter101x Před 3 lety

      @@dcode-software addEventListner('load', ...), unbelievable I know

    • @dcode-software
      @dcode-software  Před 3 lety +1

      Oh cool, you should also look at the Document DOMContentLoaded event, it may interest you

    • @Dexter101x
      @Dexter101x Před 3 lety

      @@dcode-software I found the list also yesterday, thanks your tutorials are good dude

  • @elvisreuben5002
    @elvisreuben5002 Před 3 lety

    Awesome 😍💋 💝💖♥️❤️

  • @zbysiu100
    @zbysiu100 Před 2 lety

    js is very messy, a lot of functions written in many ways

  • @mortezafarhangpanah256

    Thanks

  • @user-vw8mu2nh2h
    @user-vw8mu2nh2h Před rokem

    Thanks

  • @capslock3250
    @capslock3250 Před rokem

    Thanks