How to access to iframe element?
<p>When you have a loop through all iframes in a page like this:</p>

<p>HTML:</p>

<pre><code>&lt;ul&gt;
    &lt;li id="a"&gt;&lt;iframe src="..." /&gt;&lt;/li&gt;
    &lt;li id="b"&gt;&lt;iframe src="..." /&gt;&lt;/li&gt;
    &lt;li id="c"&gt;&lt;iframe src="..." /&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>JS:</p>

<pre><code>    for (var i = 0;  i &lt; window.frames.length;  i++) {
        if (window.frames[i].getName() == selector) {
            frame_item = ????
            break;
        }
    }
</code></pre>

<p>How can I get the DOM element for the &lt; iframe>? Or following the example, how can I get the ID for the &lt; li> item inside the loop?</p>
