title: How can I get an element from within a frameset frame using JavaScript?
body: <p>I need to access and element from within a frameset frame. For example if I have the following markup:</p>
  
  <pre><code>&lt;frameset rows="33%,33%,*"&gt;
    &lt;frame src="frame1.html"/&gt;
    &lt;frame src="frame2.html"/&gt;
    &lt;frame src="frame3.html"/&gt;
  &lt;/frameset&gt;
  </code></pre>
  
  <p>How can I get some element from one of the child frames? I have tried this:</p>
  
  <pre><code>window.frames[1].getElementById('someElementId')
  </code></pre>
  
  <p>This results in a type error :</p>
  
  <blockquote>
    <p>getElementById() is not a function.</p>
  </blockquote>
  
  <p>Can someone assist? </p>
  
  <p>Thanks!</p>