Cross browser solution for checking Null Iframes
<p>I am struggling since quite a long time now, and finally I have to post a query since I havent received any relevant answer till now.</p>

<p>What I need is to check for Null Iframes and accordingly call a function. I am looking for a replacement for the below three lines of code so as to be able to work in all browsers rather than only in IE.</p>

<pre><code>if (this.document.frames != null ) {
    for (var i=0;i&lt;this.document.frames.length;i++){
        if (this.document.frames[i] != null ) {
</code></pre>

<p>PS: I cannot use getElementbyId or getElementsByTagName since the IFrames in my code are created dynamically. 
Sorry for my knowledge,but I am preety new to Javascript and seem to have tried too many things now :(</p>

<p>Thanks a lot in advance..</p>
