-
javascript.info The Modern JavaScript Tutorial Part 2: 2.2 Bubbling and Capturing
javascript.info The Modern JavaScript Tutorial Part 2: 2.2 Bubbling and Capturing by Ilya Kantor Youtube by Lisa Friedrichsen This youtube covers the issue of how event handlers fire when multiple elements are clicked on a web page as defined by bubbling versus capturing. The addEventListener() method is used with both bubbling (the default) versus capturing…
-
javascript.info The Modern JavaScript Tutorial Part 2: 2.3 Event Delegation
javascript.info The Modern JavaScript Tutorial Part 2: 2.3 Event Delegation by Ilya Kantor Youtube by Lisa Friedrichsen This youtube gives a simple example of event delegation using a bingo scorecard. Event delegation allows you to write one event handler, attach it to a parent element, and trigger the same handler on all child elements through…
-
javascript.info The Modern JavaScript Tutorial Part 2: 2.4 Browser default actions
javascript.info The Modern JavaScript Tutorial Part 2: 2.4 Browser default actions by Ilya Kantor Youtube by Lisa Friedrichsen This youtube explores the use of the preventDefault() method of an event object to override the default action of a browser such as loading a new web page when you click a hyperlink or displaying the default…