When you access the page, you will see the DOM parent-child relationships 'Parent', 'Child (CHILD)', and 'Grandchild (GRAND CHILD)', of which the first grandchild (orange) is targeted for the event.
document.getElementById(id) - Selects an element by its ID. document.getElementsByClassName(className) - Selects elements by their class name. document.getElementsByTagName(tagName) - Selects elements ...
parentNode: The parent node property is read only property which returns us the name of the parent node of the selected node as a node object. The Node object represents a single node in the document ...
Cuireadh roinnt torthaí i bhfolach toisc go bhféadfadh siad a bheith dorochtana duit
Taispeáin torthaí dorochtana