Question about Javascript getElementsByTagName method
<p>I set the onclick event handler of one button in one of my iframes to add content to the
table of another iframe of the same window,I use</p>

<pre><code>var w = parent.frames[1].getElementsByTagName("tr"); 
</code></pre>

<p>this function should return a HTMLcollection object which is an Array-like object,but it seems that firefox and chrome can not parse my code because it can not execute</p>

<pre><code>alert("here") ;
</code></pre>

<p>I placed after the getelement instruction,does anyone have a idea what is wrong,I am new to Web programming...</p>
