title: IE8 - Object doesn't support this property or method (window.frames[i];)
body: <p>first time posting. </p>
  
  <p>I have an intermittent issue with IE8 where I get an:</p>
  
  <blockquote>
    <p>"Object doesn't support this property or method"</p>
  </blockquote>
  
  <p>This occurs when retrieving an iFrame into a variable using the following:</p>
  
  <pre><code>var wfw = window.frames[i];
  </code></pre>
  
  <p>The bit that is confusing me is that previous to this line of code I call:</p>
  
  <pre><code>var length = window.frames.length;
  </code></pre>
  
  <p>which returns the value 4. I guess my question is why can I not retrieve something that exists? </p>
  
  <pre><code>var length = window.frames.length;
  for(var i = 0; i &lt; length; i++){
      // Grab the window.frames collection so that we can iterate through it.
      var wfw = window.frames[i];
      try {
          // Attempt to push the BISCheckEvent code onto the child Window and execute it. This is to account for Iframes that have already loaded
          wfw.eval("var BISCheckEvent = new " + BISCheckEventImpl.toString() + "; BISCheckEvent.attachHandler(); ");
      } catch(e){
          // Iframe has no source, so just capture the exception and move on.
      }
  }
  </code></pre>