Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Iterating through document elements using for each in javascript

let a = document;	
let aArr = Array.from(a.all);
aArr.forEach(item => {
	console.log(item)
})

console.log(aArr)
Source by stackedit.io #
 
PREVIOUS NEXT
Tagged: #Iterating #document #elements #javascript
ADD COMMENT
Topic
Name
4+2 =