get all element by css selector code example
Example 1: selet all elemnts
var elems = document.body.getElementsByTagName("*");
Example 2: select all elements javascript
var elements = document.getElementsByTagName("*");
var elems = document.body.getElementsByTagName("*");
var elements = document.getElementsByTagName("*");