JavaScript DOM Crash Course - Part 2

  Рет қаралды 371,553

Traversy Media

Traversy Media

6 жыл бұрын

In this video we will learn how to traverse and move around the DOM with properties like parentNode, parentElement, nextElementSibling and so on. We will also learn how to insert elements with createElement() and createTextNode()
CODE: Code for this video
www.traversymedia.com/download...
BECOME A PATRON: Show support & get perks!
/ traversymedia
ONE TIME DONATIONS:
www.paypal.me/traversymedia
COURSES & MORE INFO:
www.traversymedia.com
FOLLOW TRAVERSY MEDIA:
/ traversymedia
/ traversymedia
/ traversymedia
NEW DISCORD CHAT SERVER:
/ discord

Пікірлер: 282
@eS_Zett
@eS_Zett 6 жыл бұрын
00:23 Traversing the DOM Introduction 01:18 Parents 01:18 .parentNode 04:03 .parentElement 04:48 Children 04:48 .childNodes 06:36 .children 08:03 .firstChild 08:58 .firstElementChild 09:38 .lastChild & .lastElementChild 10:37 Siblings 10:37 .nextSibling 11:17 .nextElementSibling 12:04 .previousSibling 12:31 .previousElementSibling 14:12 Create Elements 14:30 .createElement() 16:50 .createTextNode() 17:27 .appendChild() 17:59 Insert Created Elements Into the DOM 18:12 .insertBefore()
@NairiAreg
@NairiAreg 5 жыл бұрын
parent children sibling...is this a porn?
@rene78
@rene78 5 жыл бұрын
@@NairiAreg Partly yes. He has forgotten one: 14:48 create new dick
@amongdoomers9464
@amongdoomers9464 3 жыл бұрын
@@rene78 lmaoo🤣🤣
@tunamusic2314
@tunamusic2314 3 жыл бұрын
thanks so much
@thearbitarygeek2463
@thearbitarygeek2463 3 жыл бұрын
thanks bruhh
@romeojoseph766
@romeojoseph766 Жыл бұрын
I am Romeo , I am a self taught for now and I'm about 16 years old I have been learning front-end development since one and half years . fan of your work!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@LukasShannon
@LukasShannon 6 жыл бұрын
I've been following you for just a few weeks but your content is incredible! It's thorough while being accessible enough for me to start using right away. Very practical explanations, a great voice for the narrations, and a wide range of content covering all of the tools I need! Thanks a lot!
@TraversyMedia
@TraversyMedia 6 жыл бұрын
Thanks man, I appreciate that
@LukasShannon
@LukasShannon 6 жыл бұрын
Pleasure :)
@mylesdavies9476
@mylesdavies9476 5 жыл бұрын
Was about to write an almost identical comment, absolutely love this channel, thank you so much for creating these videos, they are taking my coding abilities to new levels :)
@muhammadtariq_
@muhammadtariq_ Жыл бұрын
how you guys doing? its been 5 years any progress?
@AzTreandwealth
@AzTreandwealth 6 жыл бұрын
I just want to say a MASSIVE thank you! I have been waiting for someone to create a video tutorial, specifically to do with Javascript and the DOM, and this is a simple yet outstanding one. I love these videos man. I just completed codeacademy a few times but was still a little lost in terms of how to put JS together as a web developer. This stuff has been a great help so far. I have been practicing in the console as you have been explaining and my understanding of JS and the DOM is definately expanding very quickly, and I am starting to connect the puzzle of JS a lot more. Excellent teaching style as well. Once again, many thanks!!
@iansanders6466
@iansanders6466 4 жыл бұрын
Just recently discovered your channel. This has to be the most concise series on DOM manipulation I have ever seen. Thank you so much for uploading these
@casedup
@casedup 3 жыл бұрын
Duuuuude! Thanks for not editing that out. Good humor and learning just makes sense.
@aaryanbudhirajamusic6874
@aaryanbudhirajamusic6874 5 жыл бұрын
They can show as many ads they want whether it's in the starting of the video, in between or anywhere, I can watch all of them to learn from you. You make a difference bro. I'm in college rn, but when i start earning, you can expect a really big donation. Cheers!
@MuhammadjavohirSuratov
@MuhammadjavohirSuratov 6 жыл бұрын
Great videos, Brad. Keep it up! You are creating tons of videos lately :) Make sure to have a rest time-to-time :)
@triptichhetri
@triptichhetri 5 жыл бұрын
Thank you so much for all the tutorials... learning about parentElement help me finish something that I was stuck on for weeks.
@rorjackson
@rorjackson 4 жыл бұрын
I would disable my ad blocker to support you as much as i can, I love your content and method of teaching, You are awesome, I hope one day I shall create something awesome and that credit will certainly go to you. Javascript was a nightmare for me as I am learning from videos only. You have made javascript so easy and fun, thank you again. Keep making more videos kindly.
@lynguist
@lynguist 4 жыл бұрын
traversing the dom - with traversy the don ;) thank you so much brad!
@studythainow
@studythainow 5 жыл бұрын
Really great video. I'm amazed at how little I knew about this. Thank you for the practical explanations.
@osiobeajiri1711
@osiobeajiri1711 2 жыл бұрын
Your videos are interesting and full of depth, I had to go download more of your videos. Keep up the good works.
@nishanthsubramanya1931
@nishanthsubramanya1931 6 жыл бұрын
I disable my adblock when I get into Traversy Media!!! You are just awesome.
@TraversyMedia
@TraversyMedia 6 жыл бұрын
I REALLY appreciate that. Adblock is a killer for us small content creators. Many people do not care, thank you
@essanhaji
@essanhaji 3 жыл бұрын
oh shiit mine is still on , thanks for reminding me to add the channel to my allow ads list on my addblocker
@mofe620
@mofe620 3 жыл бұрын
@@TraversyMedia Hardly a small content creator now though 😊 Well done.
@TheGerm24
@TheGerm24 6 жыл бұрын
"Should I edit that out..." I like your casual style. Its funny and engaging.
@christophercarr5865
@christophercarr5865 5 жыл бұрын
Super helpful -- this has been a much-needed supplement to the DOM section in the Udacity Front-End Nanodegree I'm working on (not their strongest section). Now I'm looking for a higher-level walk-through of the DOM's structure and function.
@umardevs
@umardevs 7 ай бұрын
14:54 thank you for not editing that out. Had a laugh and it boosted my spirit
@autumnaurora8299
@autumnaurora8299 4 жыл бұрын
"Neither one of them are inside of each other so they're siblings" Alabama : hold my beer
@OG_CK2018
@OG_CK2018 3 жыл бұрын
??
@saltysexyyy6336
@saltysexyyy6336 3 жыл бұрын
@@OG_CK2018 SWEET HOME ALABAMA INTENSIFIES
@RozArialind
@RozArialind 2 жыл бұрын
tbf child elements are inside their parent elements so...
@asmamanzoor7341
@asmamanzoor7341 3 жыл бұрын
Thank you for this great tutorial series on DOM. I have bought your udemy javascript course and intends to buy more courses after completion. Thanks a lot for the lovely courses and tutorials.
@kristinaivanova4170
@kristinaivanova4170 4 жыл бұрын
I just love this guy...I was at the edge of giving up coding and decided no to by watching Brad's tutorials cause they are somehow giving me hope and his voice is my light lol
@widespectrumcreators4691
@widespectrumcreators4691 2 жыл бұрын
Me too! 🥰🤩🙂👍🏼👍🏼
@whatsup1670
@whatsup1670 2 жыл бұрын
Как идут дела?
@bricerichard6305
@bricerichard6305 Жыл бұрын
have you got a job already?
@omarfarooq686
@omarfarooq686 6 жыл бұрын
Love your videos man
@drummerplace590
@drummerplace590 6 жыл бұрын
Thnx, very clear and ease to consume the content you provide!!!
@mudassirjabbar357
@mudassirjabbar357 3 жыл бұрын
I don't know if it has to be linked or not with my previous basic knowledge of js from random platforms, but as a code newbie i would like to testify that this is the best and amazing explanation of basic Javascript...
@user-oy6my2fg5k
@user-oy6my2fg5k 2 жыл бұрын
man, thank you so much for creating such great courses!
@mostafasalaheldin812
@mostafasalaheldin812 2 жыл бұрын
you made it so simple, thanks from Egypt
@alitalaee7468
@alitalaee7468 2 жыл бұрын
thank you so much for all tutorials you teach everything so well
@sergeiabramov282
@sergeiabramov282 6 жыл бұрын
Great video as always, thank you Brad!
@mlakshmiv78
@mlakshmiv78 3 жыл бұрын
Excellent explanation. You give me hope.
@erenkucuker3692
@erenkucuker3692 4 жыл бұрын
This video series really helpful. I had been working 2 weeks with javascript tutorials but you need to got these fundamentals rather than operands or something else. Thanks, brad.
@ahmedsandoqah9720
@ahmedsandoqah9720 2 жыл бұрын
We're now in 2021, can you see this kind of courses implement for fronend beginner ?
@fanaFSF
@fanaFSF 3 жыл бұрын
Hi. Thanks for all your videos. You have a great gift for explaining things.
@dorsolomon7251
@dorsolomon7251 6 жыл бұрын
In the element insertBefore method, you can also use the "firstChild, lastChild" methods ... Great serise !!
@mnfak4333
@mnfak4333 2 жыл бұрын
Thank you for this awesome tutorial for DOM
@sajad5706
@sajad5706 2 жыл бұрын
This man is a legend.
@deepwoodsengineering3763
@deepwoodsengineering3763 4 жыл бұрын
Once again, great video boss!
@photographyhub7309
@photographyhub7309 8 ай бұрын
thanks man I hope every minute of the lesson sticks to my mind as the "newDic" part did lol!
@stardommansion6773
@stardommansion6773 5 жыл бұрын
thank you for all of your videos
@barryjohnson2756
@barryjohnson2756 6 жыл бұрын
Awesome two videos. keep the hard work.
@iancarr3923
@iancarr3923 6 жыл бұрын
Excellent as always.
@birsingh5388
@birsingh5388 6 жыл бұрын
var newDick :) 14:50 hahaha, great humour.
@parkerAmv
@parkerAmv Жыл бұрын
Thank you brad this is really helpful 😇
@kunalpandey7189
@kunalpandey7189 4 жыл бұрын
thank you for the tutorials
@adrianoldchannel2494
@adrianoldchannel2494 6 жыл бұрын
This is so wow. I didn't have a clue that this could've been. Thanks Brad for sharing this tremendous know.
@raymondorenda7385
@raymondorenda7385 Жыл бұрын
Great Stuff. React.js journey started this way. Front end will soon be coded in javascript only. HTML and CSS will technically go behind the scenes.
@mavoolumma
@mavoolumma 2 жыл бұрын
You are a life saver ! 🥰
@prashantsingh5142
@prashantsingh5142 6 ай бұрын
Thanks for sharing quality
@juwon3426
@juwon3426 4 жыл бұрын
you're amazing thank you so much
@heshankumarasinghe3159
@heshankumarasinghe3159 3 жыл бұрын
Thank you.... I learnt a lot of stuff.....
@kellyt6110
@kellyt6110 2 жыл бұрын
Great video, thank you for your time creating this. Quick question - 19:30 Why are two variables from the header required here...?
@joshchinwendu
@joshchinwendu 5 жыл бұрын
I don't understand while people will still dislike such a nice video
@tech_channel110
@tech_channel110 5 ай бұрын
very well explained brad
@myklrogers4373
@myklrogers4373 5 жыл бұрын
DAAAAAHAHHAA "should I edit that out...nah"! Brilliant :D!!
@amongdoomers9464
@amongdoomers9464 3 жыл бұрын
Time?
@nicolas3030
@nicolas3030 3 жыл бұрын
14:45
@tharunrocky14
@tharunrocky14 6 жыл бұрын
Thanks a Lot!!! Respects to you. =)
@King-tp6ui
@King-tp6ui Жыл бұрын
14:49 I love this part
@Hattrick249
@Hattrick249 Жыл бұрын
0:57 too lmao, what an interesting way to define what a sibling is
@maximocaceres4685
@maximocaceres4685 Жыл бұрын
same
@nilupulperera
@nilupulperera Жыл бұрын
Excellent! Thank you very much.
@martins-ecke
@martins-ecke 6 жыл бұрын
that was awesome! Thank you very much =)
@xhappybunnyx
@xhappybunnyx 5 ай бұрын
For anyone who doesn't know (I'm sure traversy's using it nowadays), pressing ctrl-D after youve highlighted text will also select the next instance of that text it finds, so you can do edits like at 4:19 much faster
@anjugarg5006
@anjugarg5006 4 жыл бұрын
thank you brad
@yatheeshgowda6191
@yatheeshgowda6191 10 ай бұрын
I seriously love the way you explain stuff but the moment I become more conscious was from 14:48
@dih12
@dih12 3 жыл бұрын
TRAVERSING THE DOM - It is nice that you got JS DOM rule based on your name :)
@DanielK48
@DanielK48 6 жыл бұрын
Awesome videos ... all 4 of them ;)
@nowyouknow2249
@nowyouknow2249 5 жыл бұрын
Thanks Brad!
@Glebtc
@Glebtc 2 жыл бұрын
Thank you for not editing "that" out :)
@hirephpdevelopers3840
@hirephpdevelopers3840 6 жыл бұрын
Beautiful.
@thearbitarygeek2463
@thearbitarygeek2463 3 жыл бұрын
Love the content maaaaaaaaan
@feliciatimmy9467
@feliciatimmy9467 2 жыл бұрын
Thank you man
@peteromoniyi3535
@peteromoniyi3535 5 жыл бұрын
Nice work.
@moayedmustafa9673
@moayedmustafa9673 5 жыл бұрын
I love you man!
@Alphfirm
@Alphfirm 6 жыл бұрын
Thanks so much!
@haileywale1527
@haileywale1527 3 жыл бұрын
i learn new method this is" Newdic()" thanks traversy!
@alexlun4464
@alexlun4464 3 жыл бұрын
Dude I swear your crash course on DOM is one of the cleanest tutorials out there. Nobody, and i mean this after using multiple resources for different topics, can explain things the way you do. I'm really having fun watching your crash course. Sorry I'm poor man can't help you on patreon.
@AJ-le3yh
@AJ-le3yh 5 жыл бұрын
Traversy Media discussion traversing the DOM!
@hachij_
@hachij_ 6 жыл бұрын
awesome! part 2!
@belmiris1371
@belmiris1371 6 жыл бұрын
This series is really great, thank you! I'm not sure which avenue to use to suggest themes for future videos so I will try it here. I know you've done Angular 2 videos for Udemy (I signed up for them) so I would really like to see a video on the basics of setting up and getting started with the ag-grid in an angular 2 project. It seems to be the only real free grid but the site is pretty random and confusing and I'm kind of confused with how to get started. As far as I can tell, if you make it, it would be pretty much the first one on the internet. Thanks again.
@panchopaulo111
@panchopaulo111 3 жыл бұрын
A video of your own bloopers would be awesome.
@patrickawuku8056
@patrickawuku8056 2 жыл бұрын
God bless you
@joesden9628
@joesden9628 4 жыл бұрын
Grande Brad!!!
@sudhakarkgr3105
@sudhakarkgr3105 6 жыл бұрын
excellent
@gonzaotc
@gonzaotc 2 жыл бұрын
Great video!
@XboneAus
@XboneAus 4 жыл бұрын
01:00 Brad: "Neither one of them are siblings because they are not inside each other". Alabama: uhmmmm
@OG_CK2018
@OG_CK2018 3 жыл бұрын
?
@RozArialind
@RozArialind 2 жыл бұрын
travesty: is that too much? editor: no, no. its fine keep going
@zropoint5899
@zropoint5899 Жыл бұрын
Hi, Congrates for 2M subs
@WILLGYS
@WILLGYS 2 жыл бұрын
that was excelent
@danbarber9137
@danbarber9137 6 жыл бұрын
Jokes @ 14:50 :D
@awsmnessdesignstudio5252
@awsmnessdesignstudio5252 6 жыл бұрын
lol
@MrBestard
@MrBestard 6 жыл бұрын
haha, glad I lowered my speaker volume
@TheReverOcelot
@TheReverOcelot 5 жыл бұрын
That's why I love Brad, because he is a real human being.
@rickmediacollege9441
@rickmediacollege9441 5 жыл бұрын
The momeny you see this comment and you are on 14:20 and your like "its coming! its coming!"
@nathanielmelendrez797
@nathanielmelendrez797 4 жыл бұрын
Such a good tutorial! Keep it up!
@thaivietnhat8503
@thaivietnhat8503 4 жыл бұрын
Thanks Sir.
@limitless0032
@limitless0032 3 жыл бұрын
Thanks a lot
@sumedha4168
@sumedha4168 2 жыл бұрын
Thank you
@tsubimekdeinmansubimekdein3898
@tsubimekdeinmansubimekdein3898 Жыл бұрын
thank you
@ahmedfathy4691
@ahmedfathy4691 3 жыл бұрын
you are awesome !
@ai.201
@ai.201 4 жыл бұрын
So good.
@marvinespinoza8671
@marvinespinoza8671 5 жыл бұрын
"Should I edit that out?....Nah". Dead! lol
@carlossantamaria1820
@carlossantamaria1820 Жыл бұрын
amazing
@jbelle3177
@jbelle3177 6 жыл бұрын
ctrl + D you can select the same word
@codybishop7526
@codybishop7526 6 жыл бұрын
Wow, you are awesome. I went from the Coding Train JavaScript fundamentals playlist to this Dom crash course and it makes perfect sense now. We use JS to manipulate webpages by accessing the elements in the Dom. Yay. But one small observation. I think it would so awesome if after you demonstrate how to do something (like get a dom object by calling the class) you could give a real world example of why you would make this distinction. I just pulled that at random, but in general it really helps not only know HOW to do something with code but also knowing WHY you would do something a certain way. Awesome videos man!
@jackpaperhands
@jackpaperhands 2 жыл бұрын
BROSKI, you're a fucking legend
@Lomaxient
@Lomaxient 5 жыл бұрын
Ooohhh, this is all getting a bit exciting now! (genuinely, that wasn't sarcasm)
@AbdullahMamunJust
@AbdullahMamunJust 6 жыл бұрын
just wow.Thanks thanks and thanks a lot. How can I show you that I am so gratefull to you!!?!!
@NoahNobody
@NoahNobody 6 жыл бұрын
Nice dic joke. I'm glad you didn't edit it out.
@ademmohammed3939
@ademmohammed3939 4 жыл бұрын
LMAO 😂😂😂
@siwilson1437
@siwilson1437 4 жыл бұрын
Laughed for ages at that, caught me right off guard :D
@OG_CK2018
@OG_CK2018 3 жыл бұрын
I am so useless that i did not even get the newDic() joke...will someone pls explain D:
@noyoudidnot3513
@noyoudidnot3513 3 жыл бұрын
@@OG_CK2018 D:
@Martin958
@Martin958 3 жыл бұрын
When the element was changed to 'Hello Div' why didn't it replace the current of 'Item Lister' in the page tab?
@lucazanda212
@lucazanda212 Жыл бұрын
The div joke absolutely killed me "...we can take this div and do different things with it"
@SumitSarkar96
@SumitSarkar96 3 жыл бұрын
watching for the third time. still learning........
JavaScript DOM Crash Course - Part 3
33:45
Traversy Media
Рет қаралды 306 М.
JavaScript DOM Crash Course - Part 1
39:01
Traversy Media
Рет қаралды 1,1 МЛН
Эта Мама Испортила Гендер-Пати 😂
00:40
Глеб Рандалайнен
Рет қаралды 10 МЛН
Каха с волосами
01:00
К-Media
Рет қаралды 6 МЛН
Did you find it?! 🤔✨✍️ #funnyart
00:11
Artistomg
Рет қаралды 88 МЛН
Learn DOM Manipulation In 18 Minutes
18:37
Web Dev Simplified
Рет қаралды 1 МЛН
The Importance of Specialization in Coding
7:13
Traversy Media
Рет қаралды 58 М.
Do You Know The Difference?
8:47
Web Dev Simplified
Рет қаралды 55 М.
HTMX Crash Course | Dynamic Pages Without Writing Any JavaScript
56:47
Traversy Media
Рет қаралды 126 М.
NEW GPT-4o: My Mind is Blown.
6:28
Joshua Chang
Рет қаралды 436 М.
The DOM in 4 minutes
3:51
Aaron Jack
Рет қаралды 100 М.
JSON Crash Course
24:49
Traversy Media
Рет қаралды 1 МЛН
Are You Too Dumb To Code? A Chat About Imposter Syndrome
7:08
Traversy Media
Рет қаралды 61 М.
NPM Crash Course
42:03
Traversy Media
Рет қаралды 315 М.
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 622 М.
📱 SAMSUNG, ЧТО С ЛИЦОМ? 🤡
0:46
Яблочный Маньяк
Рет қаралды 911 М.
Рекламная уловка Apple 😏
0:59
Яблык
Рет қаралды 819 М.
СЛОМАЛСЯ ПК ЗА 2000$🤬
0:59
Корнеич
Рет қаралды 2,4 МЛН
Best Gun Stock for VR gaming. #vr #vrgaming  #glistco
0:15
Glistco
Рет қаралды 4,2 МЛН
Apple watch hidden camera
0:34
_vector_
Рет қаралды 2 МЛН