getElementsByTagName("!") returns all elements in documents in IE and ( I think FF), but doesn't return anything in Chrome. Is there an alternative?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4256339/javascript-how-to-loop-through-all-dom-elements-on-a-page">Javascript: How to loop through ALL DOM elements on a page?</a>  </p>
</blockquote>



<pre><code>var arr = document.getElementsByTagName("!");
</code></pre>

<p>returns all elements in document in IE, but doesn't return anything in Chrome. </p>

<p>Is there a cross-browser alternative ?</p>

<p>Update:
The ! option returns all tags in a document in an array.</p>
