Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function logAll (el){
- console.log(el.tagName);
- if(el.children.length){
- for(var i=0;i<el.children.length;i++){
- logAll(el.children[i]);
- }
- }
- }
- logAll(document.body);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement