JavaScript DOM Crash Course - Part 3

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

КОМЕНТАРІ • 260

  • @eS_Zett
    @eS_Zett 7 років тому +238

    00:11 Introduction
    00:45 Event Listener Introduction
    02:46 .addEventListener() with Click Event
    04:59 Event Parameter
    05:47 e.target
    08:43 e.type
    09:10 e.clientX
    09:40 e.clientY
    10:01 e.offsetX
    10:29 e.offsetY
    10:54 e.altKey, ctrlKey & shiftKey
    12:26 Mouse Events
    14:18 dblclick
    14:38 mousedown
    15:00 mouseup
    15:17 mouseenter
    17:03 mouseleave
    17:19 mouseover & mouseout
    19:15 mousemove
    23:05 Keyboard & Input Events
    24:17 keydown
    26:11 keyup
    26:34 keypress
    26:50 focus & blur
    27:34 cut
    28:41 paste
    28:50 input
    29:23 change
    31:50 submit

  • @seanlangley7467
    @seanlangley7467 7 років тому +333

    Thank you, I do not have money for the study, and your channel is a pearl in this sea with the name of UA-cam. Thank you so much, Brad! God bless you!
    Guys, switch off AdBlock at this channel, please ;)

  • @Wind_Lamp
    @Wind_Lamp 5 років тому +9

    I bought few courses from udemy to learn DOM , but no one has such explanation and teaching ability, finally I found this course on UA-cam, thank you very much Sir to share your knowledge , you are great teacher too .

  • @aranguren12
    @aranguren12 4 роки тому +3

    Brad, you are an incredible person for doing this. I´m currently taking a part-time, semi-remote career on web dev and your courses are helping me compliment a LOT of things that are sometimes left half way. Keep on doing this man, you seriously rock.

  • @ironheadmedia1625
    @ironheadmedia1625 3 роки тому

    One of the best tutorial video I have ever watched. If you have not watched yet and intend to watch, don't waste any second by waiting

  • @soultouchingsongs
    @soultouchingsongs 7 років тому +89

    Excellent tutorial on DOM with easy explanation.. You are the best teacher. Thank you.

    • @steveburrus9347
      @steveburrus9347 6 років тому

      Not the b est teacher at all. U know of Derek Banas?

    • @aadiyogini
      @aadiyogini 5 років тому +7

      @@steveburrus9347 Yes Derek Banas is good but his videos are not like for beginners means he too fast that if anyone is new to programming then he/she won't to be able to grasp that much quickly or won't be able to understand any logic .... Derek banas covers everything but to get started u should watch videos like of Brad Traversy or someone who gives somewhat detailed explanation at the beginning after that anyone should move on to cover nearly all topics from Derek banas bcoz then anyone would be able to make sense out of Derek's videos ........if someone covered ur 20% concepts with understanding n patience initially then with Derek banas videos left 80% concepts can be covered smoothly without getting stuck or confused........otherwise even though his video time length is small still it's gonna take huge time n its gonna waste time.......And yes Brad Traversy is really the best teacher.

    • @Siamxel
      @Siamxel 3 роки тому +1

      @@steveburrus9347 nope he's not

  • @rs.wright
    @rs.wright 2 роки тому

    Can't express how helpful this series is... Every major tutorial site/channel that teaches JS focuses primarily on the JS algorithms, but teaches nothing about how to actually use it to alter the DOM.
    Also appreciate the concise yet thorough explanations, there is a lot of info packed in this half hour.

  • @RedEyedJedi
    @RedEyedJedi 4 роки тому +1

    For anyone who hasn't heard of emmet or used emmet, I highly recommend learning about it. It's really not hard and it speeds up writing html a lot. I have banned myself from typing html now, and only type emmet and by doing that, I have managed to pick it up really quickly. Thanks for another brilliant video Brad, you're an awesome teacher.

  • @filbertmsuya9406
    @filbertmsuya9406 23 дні тому

    You are just an amazing Tutor.. This course is worthy paying for despite you gave to us for free. Be blessed always!

  • @Spoopers
    @Spoopers 2 роки тому +1

    I'm in a JS class at school that I paid way too much money for and I just learned more from two hours of your videos than I have in 4 weeks of that class.

  • @satvik1489
    @satvik1489 3 роки тому +2

    These 4 videos on DOM and its manipulation are very important. Many talented developers were not able to explain this topic while teaching JavaScript but Traversy Media did it very nicely. Thanks a lot 🙌

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

    This is the most straightforward dom and JavaScript video I have seen. Thank you

  • @bitflipped5337
    @bitflipped5337 3 роки тому

    I've been learning c and c++ for a year and tried to migrate here, and these are new to me. Thanks for the tutorial

  • @Brandon-yy8ey
    @Brandon-yy8ey 4 роки тому

    This tutorial connected many dots for me. I have been struggling with making burger menus work, but your addEventListener examples have really helped me with this. I created another event function so that "Hello" in the box div would turn on & off with mouseover & mouseout, and the light bulb went off in my head. Thank you, sir!

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

    Now it feels like i have power to manipulate the dom then ever Thanks Brad You have my undying gratitude and respect !

  • @AngaarUriakhil
    @AngaarUriakhil 3 роки тому

    Thanks a bunch. Had no clue about DOM before I started this course. Free too. What a time to be alive.

  • @vincent3542
    @vincent3542 3 роки тому +1

    up to now, you still the inspirations 😭

  • @jojepacana816
    @jojepacana816 5 років тому +9

    your such an amazing teacher, i love the way you explain, now i can develop by referencing your tutorials and i hope you don't get bored of doing like this just to help us beginners. thanks a lot, god bless

  • @Aimopotis
    @Aimopotis 7 років тому +5

    This is fantastic for me as a new Developer

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

    I've been following you for a while now and I've just noticed that you've reached 2 million followers. Congratulations Brad, you totally deserve this and much more. Cheers!!🍺🍺

  • @sarvinismayilov
    @sarvinismayilov 4 роки тому +3

    Brad! Thank you for all your great work in this channel! As a starter on this field i find it all well structured to get to the point!

  • @KerimKaraman28
    @KerimKaraman28 3 роки тому +1

    Man it's still quite good and understandable in 2021 ! Thanks for the video.

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

    Still holds good today, thank you Brad!

  • @divyasampath9500
    @divyasampath9500 5 років тому +6

    Event Listener was quite a deal for me before, this vdo was all that I needed!

  • @rajdhanush6775
    @rajdhanush6775 4 роки тому

    best tutor ever seen ... already i bought ur html css udemy course ...

  • @moskalenko2k24
    @moskalenko2k24 4 роки тому

    Very good! I even switched off AdBlock to watch advertising to help this channel )

  • @jvjplus
    @jvjplus 5 років тому +2

    Changing background based on position was awesome!! 😊

  • @weightlossmotivation7917
    @weightlossmotivation7917 5 років тому +3

    Thank you so much for this 4 part tutorial it's cleared up so much for me in regards to DOM manipulation with native javascript!

  • @ashenafiteesema9836
    @ashenafiteesema9836 4 роки тому

    I would like to thank you very much, i have no idea, you are the best of the best teacher, really I haven't any experience of javascript but when I saw your crash course, I have got a lot of knowledge.

  • @businessyoungsters5503
    @businessyoungsters5503 5 років тому +1

    dude your tutorials are gem. They Provide A Lot Of Value. Thanks A Lot

  • @gilgene5803
    @gilgene5803 6 років тому +2

    This is really a really great crash course I understand now how to operate better with the DOM events.

  • @kennstack01
    @kennstack01 3 роки тому

    Actually, THIS IS one of my Favorite MENTORS in #Coding ! He has an art_of_Teaching!

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

    Thanks for the knowledge you planted into me through this crash course

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

    I learnt alot of new dom methods and ideas of how to use them from these video series
    Thank you,

  • @ckhinsight
    @ckhinsight 7 років тому +12

    Hello, another nice tutorial on event handling for JS newcomers.
    Suggestion:
    You should use "keyup" instead of "keydown" for updating the innerHTML (since the last alphabet is not inserted in the updated text)

    • @Aurora-ku4xr
      @Aurora-ku4xr 5 років тому

      Hi, Khai, your suggestion is very much appreciated!!

  • @svilen001
    @svilen001 4 роки тому

    well put together, easy to grasp. we need more funny moments like RGB background color in these boring youtube tutorials

  • @proobld
    @proobld 6 років тому +1

    The best explanation that i have seen for DOM, thank you.

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

    Thanks Brad for this good job, your explanation is very clear and I understand better alla javascript DOM items

  • @bamelive
    @bamelive 7 років тому +1

    That event parameter at 5:04 helps to understand how the "(req, res)" works on node.js.

  • @katrinalena648
    @katrinalena648 5 років тому +1

    Great, great thanks, wonderful passionate teacher. Hope to learn online and offline with you soon!

  • @marcelosoares3428
    @marcelosoares3428 4 роки тому +1

    you are the best! Greetings from Brazil

  • @congxiao1989
    @congxiao1989 5 років тому

    thanks to you I gained so much knowledge on DOM and VJS

  • @swethaaaa
    @swethaaaa 5 років тому +2

    Love your teaching. It helps me a lot
    Thanks a ton

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

    I have learnt a lot watching your videos , thank you!

  • @ariesvelasquez1548
    @ariesvelasquez1548 7 років тому +1

    This should be the style or method of teaching my university do! Thanks Brad!

  • @flamyngoo
    @flamyngoo 4 роки тому

    This is very helpful! I did not get bored and the funny things actually made me focus more and learn them easily 🥰

  • @tomtom5981
    @tomtom5981 5 років тому

    This dude is a natural; thanks, friend...

  • @b.naveenkumar7662
    @b.naveenkumar7662 3 роки тому

    Your brilliant man I love your teaching and knowledge

  • @suhedaerturk215
    @suhedaerturk215 4 роки тому

    Thank you for the clear explanations! You are the best teacher!!!

  • @ChrisTian-ox5nr
    @ChrisTian-ox5nr 3 роки тому

    I appriciate yor hard work Traversy Thank you! So far really enjoying this crash course!

  • @AmilcarPino
    @AmilcarPino 6 років тому +3

    Thanks for taking the time to do the JavaScript DOM Crash Course simple and useful. Definitely the best of all without a doubt. You are helping a lot of people to achieve their goals. 👍

  • @IshanKesharwani
    @IshanKesharwani 4 роки тому +1

    Nice video Guru. Loved it !!!!!

  • @generalzeedot
    @generalzeedot 6 років тому

    this should be the most watched video on youtube

  • @chimpionboy
    @chimpionboy 6 років тому +3

    Hey Brad great video I was playing around and found if you do Ctrl C it also copy too. Lol. I kinda starting to love JavaScript now.

  • @mz3993
    @mz3993 3 роки тому +1

    Thank you Brad for another awesome video!

  • @MrRoubleh
    @MrRoubleh 4 роки тому

    thank you so much. You made javaScript look easy

  • @baciukrystyan6479
    @baciukrystyan6479 7 років тому

    You are a great teacher. Thank you for all videos.

  • @kunalpandey7189
    @kunalpandey7189 5 років тому

    thank you, your videos are so much helping me you can't even imagine.very well explained.

  • @pi5549
    @pi5549 7 років тому +36

    "This is a silly example, I'm going to delete it"

    • @TraversyMedia
      @TraversyMedia  7 років тому +5

      lol true :)

    • @TraversyMedia
      @TraversyMedia  7 років тому +8

      I just meant they are not things that you would implement on a real project. But yes good for learning

    • @surinfarmwest6645
      @surinfarmwest6645 7 років тому +1

      I agree. I can see a lot of fun using the disappearing page (winding the wife up!) and the colour change as I teach English to 2 - 4 year old Thai children out here in the sticks.

    • @sessonid5082
      @sessonid5082 7 років тому +1

      pi Lmao’ed so hard when he did that I immediately wanted to go make it myself

  • @tasteoftheair
    @tasteoftheair 4 роки тому

    When I watch this course, I start to think that I actually might like JavaScript....maybe, or even have some hope to understand it one day)) Wish I found it before, would save a lot of hours of struggling. Thank you!

  • @muhammadabubakarmunir8874
    @muhammadabubakarmunir8874 5 років тому

    Excellent lectures related DOM

  • @ga7853
    @ga7853 6 років тому

    Thank you so much for doing this, your efforts are greatly appreciated, and hopefully, soon I will be able to show my appreciation the right way.

  • @amay5003
    @amay5003 5 місяців тому +1

    This is really great, and I love the way you do your videos. As others have mentioned, the code link doesnt work any more, could you link to the code?

  • @ygcjayalal
    @ygcjayalal 3 роки тому

    awesome lecture forever. Very good, easily understandable a great lessons. thank you so much

  • @pascholatti
    @pascholatti 5 років тому

    great video, helped me a lot on a assignment project I have now!

  • @bogdanmazur3256
    @bogdanmazur3256 3 роки тому

    That moment when everthing "just freaking disappeared" really made me laugh for some reason).
    Thanx for great explanatioins, man

  • @nikhilevin
    @nikhilevin 7 років тому

    Thanks for your dedicated and Passionate service!

  • @Artificial_Intelligence_AI
    @Artificial_Intelligence_AI 5 років тому +12

    28:20, you just showed me a new way of trolling my friends lol.
    hey buddy, you messed up the entire site and my computer lol

  • @singaporestreettravel
    @singaporestreettravel 7 років тому

    what a fantastic video once again, thanks for sharing no doubt You are a great teacher.

  • @siemen_subbaiah
    @siemen_subbaiah 4 роки тому

    So this was out on my 17th birthday!

  • @mtshgaming292
    @mtshgaming292 4 роки тому

    thank u. u solved my problem in one minute . love u

  • @Hizbullla
    @Hizbullla 5 років тому

    Dope videos. You got another dedicated student right here... jjjuuuuuusssst one criticism; when displaying the change in styles, appreciate it if you can use a more bolder color. Changing white to off white is a bit hard to pick up.

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

    Good work indeed, this video has great value! Thank you and keep it up.

  • @alexlun4464
    @alexlun4464 4 роки тому

    Switching off my adblock because you deserve it

  • @fasikademelash4638
    @fasikademelash4638 3 роки тому

    btnDisplay.addEventListner('click',function(){h1.textContent="thank you and merry christmas"})

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

    Thankyou brad sir
    God bless you ❤️🙏🏻👑

  • @imranshaikh115
    @imranshaikh115 5 років тому

    Really very impressive. keep doing this kind of job

  • @ABHISHEKKUMAR-gp8ls
    @ABHISHEKKUMAR-gp8ls 4 роки тому

    very good tutorial for me. Great job BRAD...

  • @anag2125
    @anag2125 4 роки тому

    Hi! First of all thank u very much for all the tutos!! I'm even planning to continue with all the Javascript tutorials from your channel :D But this time was thinking on making a suggestion, for other vids, to maybe not give so many examples of things (events in this case) that we may never use and show the ones that we will use for sure instead.. Just a suggestion! Thank u anyways!! Your tutos are helping me a lot and I'm sharing them on Twitter as I watch them! :D

  • @abhisheksunam4869
    @abhisheksunam4869 4 роки тому +1

    Lockdown Diaries
    Thank you Brad !

  • @កំសាន្ត-ប2រ
    @កំសាន្ត-ប2រ 4 роки тому

    You are so dmn good lecture ever.
    Thanks you

  • @chevalier5691
    @chevalier5691 4 роки тому

    Interesting, we could use cut and paste event listener and block those features for something like an exam app. We could also use focus and blur for like form interactivity. e.preventDefault() prevents submitting to the page?? I'm guessing it has something to do with form action atrributes... Cool cool

  • @Aserve1st
    @Aserve1st 5 років тому +1

    Thank you for an amazing lesson. Going on to the last part. =)

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

    Thank you, Brad. It helped a lot.

  • @sessonid5082
    @sessonid5082 7 років тому +3

    Information overload so many ideas for thangs I can build my boy

  • @nightcode.
    @nightcode. 3 роки тому +1

    Thanks you so much sir❤️

  • @jiejiefu
    @jiejiefu 5 років тому +39

    28:21 document.body.style.display = 'none'; 😀

    • @tunamusic2314
      @tunamusic2314 4 роки тому

      what is this used for?

    • @warhag
      @warhag 4 роки тому +3

      ​@@tunamusic2314 it says "whatever is in the body of HTML, dont show it", which basicly leads to a almost completly blank site

  • @sarahghanei1997
    @sarahghanei1997 3 роки тому

    Thank u, it was very useful.

  • @danielddungu
    @danielddungu 3 роки тому +2

    Hello Brad, where can find the file with an HTML file? The link in the bio is not working

  • @misharial-essa7407
    @misharial-essa7407 4 роки тому +1

    Quick question: at 25:54 the letters (key strokes) don't appear immediately. You need to press another key for the previous key stroke to appear in the "output". It looks like the "output" is executed before the "innerHTML". Can you please explain why? or maybe suggest a video that would explain this (in case it requires long elaboration). Thanks a lot and Kudos for the great content!!

  • @nadeemshareef7508
    @nadeemshareef7508 4 роки тому

    28:28 lol bro best youtube channel

  • @wiskassaquetas123
    @wiskassaquetas123 4 роки тому

    Thank you for this video, it's really really useful!

  • @tariqabdulghani5337
    @tariqabdulghani5337 5 років тому

    Great explanation

  • @limitless0032
    @limitless0032 3 роки тому

    Thanks , you are a blessing!

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

    code for this video is not available on your website. can you plz provide it...

  • @cryptocoinkiwi8272
    @cryptocoinkiwi8272 4 роки тому

    This was an excellent tutorial cheers!

  • @maili23
    @maili23 3 роки тому +1

    @Traversy Media thank you for your great work. I noticed an issue at 25:49 when you start typing only from the nd keydown the value is displayed in the div if that makes sens (e.g. when typing "hello" it shows only "hell". I notices this issue in my code as well but since I am a beginner I am since now not able to fix it. thx

    • @eg1984BLK
      @eg1984BLK 3 роки тому +1

      Sorry maybe it is late but I find it today. I fixed the issue by using 'keyup' instead of 'keydown'. I am not 100% sure but it seems the letter is actually written when you release the key, not push the key.

  • @avi12
    @avi12 7 років тому

    You should mention that the change event also fires off when a text input blurs out.

  • @shakt77
    @shakt77 7 років тому +6

    I noticed towards the end of the video that “output.inner HTML” works with or without grabbing it in the document, anyone know why that is?

    • @yudisthirahadigustianda489
      @yudisthirahadigustianda489 6 років тому +4

      Yeah, can someone explain it?

    • @reckonyd
      @reckonyd 5 років тому +3

      Maybe late but the answer is that element IDs are global variables in javascript. Hope it helps :)
      2ality.com/2012/08/ids-are-global.html

  • @sisamkosu2718
    @sisamkosu2718 3 роки тому

    you are the best man