document.queryselectorall w3 id code example Example: select all elements javascript var elements = document.getElementsByTagName("*");