JavaScript DOM Tutorial #10 - Event Bubbling

preview_player
Показать описание
Yo gang, in this JavaScript DOM tutorial I'll explain the concept of event bubbing, and how we can use it to our advantage when setting up event listeners.

----- COURSE LINKS:

---------------------------------------------------------------------------------------------
Other tutorials:

----- JAVASCRIPT FOR BEGINNERS:

----- CSS FOR BEGINNERS:

----- NODE.JS TUTORIALS

============== The Net Ninja =====================

================== Social Links ==================

Рекомендации по теме
Комментарии
Автор

I never understood what people meant by event bubbling until I heard that explanation.

NoahNobody
Автор

I've been watching your tutorials for about 1, 5 year now but still i'm regularly getting impressed by how clearly you explain concepts

bartoszsowa
Автор

Your tutorials are absolutely amazing mate! Very clear and easy to understand. JavaScript has been my Achilles Heel for the last year, but thanks to your tutorials it's becoming much clearer.

LucasofAppalachia
Автор

I love this! Such a smart way of adding event listeners!

patrickc.
Автор

Just learned about event bubbling but couldn't really wrap my head around it yet ;D
Thank you for this clear explanation!

MdR
Автор

I'm really liking this series so far. So clear! You make it seem so simple :) should have done this earlier!

Piano_Albert
Автор

Thanks, we live in great times. Your tutorials are priceless.

dunkTheFunk
Автор

I was struggling to understand parentNodes, childNodes, etc...consequently, event bubbling..but you made it so simple to understand, thanks

superyoyo
Автор

Wow! Very good tutorial in explaining often confusing or intimidating topic! Thanks a lot!

rongliao
Автор

every time i watch one of your tutorials i add many experiences to my knowledge, please keep to add more value videos

fvvfwop
Автор

WebAssembly? Please, it would be awesome if someone like you explains it

juangrandoso
Автор

Great. I learned about it but till now didn't know why it's used.

axelcarvalho
Автор

Very well explained. Actualy i had problem and was thinking.. why it not works..

pastuh
Автор

Thank you!!! The only explanation I fully understood.

Meyaleleth
Автор

Hey man,
I believe in that case you can just simply use remove() method without grabing parent node. Correct me if I'm wrong :)

P.S. I really love your channel, keep up good work sir!

jfiejka
Автор

Hi Shaun, another great playlist! I would suggest to keep li.parentNode.removeChild(li) since that way the event handling function can be reused on some other elements without the need to change variable 'list' inside the function, or at least to better decouple it from the variables outside its scope, a situation that I often encountered in my experience.

Gruximillian
Автор

This worked for me,
const list = ul')
list.addEventListener('click', function(e)
{

{
const li = e.target.parentElement;

}
});

MegaLearningStuff
Автор

what's the theme you were using in Atom?

QuanNguyen-ogpq
Автор

You can use 'this' inside the event to use the list as well, right?

saulblancotejero
Автор

"What is event bubbling? In basic terms it's the bubbling of events"
Wow, so clear now.

yadusolparterre
join shbcf.ru