JavaScript DOM traversal
surfing through the HTML with JavaScript
We can get the parents and children of each document object with parentNode
and children
:
We can also just get the first child of each object with firstChild
:
Last updated
surfing through the HTML with JavaScript
We can get the parents and children of each document object with parentNode
and children
:
We can also just get the first child of each object with firstChild
:
Last updated