Event Bubbling and Capturing

The DOM has two ways for objects to detect events: from the top down, and from the bottom up. The first method is known as event capture, the second is called event bubbling. Event capturing When you use event capturing | | —————| |—————– | element1 | | | | ———–| |———– | | |element2 \ / […]

Read More