javascript querySelectorAll get collection code example
Example 1: document.queryselectorall extract all href element
[].forEach.call( document.querySelectorAll('img.PinImageImg'),
function fn(elem){
console.log(elem.src);
});
Example 2: select all elements javascript
var elements = document.getElementsByTagName("*");