dom get all tags

JavaScript
var elems = document.getElementsByTagName("*");
Source

Also in JavaScript: