JavaScript DOM Traverse
JavaScript utility to traverse the DOM under an element
Sample 1
Sample 2
div a
div b
div c
Hide tagName undefined*
Results
Notes
- A tagName can be undefined if the element is text
- Different browsers will show some differences in the DOM structure