title: Accessing a javascript function in a nested iframe in IE
body: <p>I currently have a page structure that consists of a page(Parent) that includes an iframe(iframe0) and inside that iframe I have another iframe(iframe1).  In iframe1 I have a javascript function that I am trying to call from Parent.  In Firefox/Chrome/Safari I am able to call this function with the following code:</p>
  
  <pre><code> frames["iframe0"]["iframe1"].functionName();
  </code></pre>
  
  <p>However, in Internet Explorer the above code does not work and it returns the error "Object doesn't support this property or method".  I have tried some other ways to access the method with them all returning the same error.</p>
  
  <pre><code> window.frames.iframe0[iframe1].functionName();
   window.iframe0.iframe1.functionName();
   window.frames.iframe0.frames.iframe1.functionName();
  </code></pre>
  
  <p>I even tried calling a function in iframe0 that called the function in iframe1 and that didn't even work.</p>
  
  <p>Anyone have any idea on how to access a javascript function that is nested in an iframe that is 2 levels deep?</p>
  
  <p>Thanks.</p>
  
  <p><strong>Update:</strong>
  After looking into the problem further, I have found that the problem I am dealing with is not related what I have asked.  The answer ylebre gave below answers the question I have asked, and there for will me marked as the answer.  I will probably start another question describing my problem in more detail.  </p>