3 ms·
So far, feedback has been: 1. maybe an initial syntax overview: target.addEventListener(type, listener[, useCapture]); 2. I think it’d be worth explaining wha
by benhowdle89 14y ago
So far, feedback has been:
1. maybe an initial syntax overview: target.addEventListener(type, listener[, useCapture]);
2. I think it’d be worth explaining what capture and bubble are.
I agree!
- csmattryder 14y agoAnother helpful point would be when to use capture, and when to use bubble. Did like this post though, I've only recently picked up JS and this confused me when I tried implementing listeners a few weeks ago for a project.