Advertisement
Guest User

Untitled

a guest
May 17th, 2016
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. for(var x = document.querySelectorAll('address'), list = [], i = 0; i < x.length; i++) list.push(x[i].getAttribute('addr'));
  2. document.body.innerHTML = '<pre>'+list.join("\r\n")+'</pre>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement