<html>

   <body>

   <pre>
      <script>
         var all = document.getElementsByTagName('*');
         var test = '';

         for (var i = 0; i != all.length; ++i)
            test += all[i].tagName + '\n';

         alert(test);
      </script>
   </pre>

   </body>
   </html>