title: Get a dom inside a frame
body: <p>For a browser extension, I am trying to access an element that is inside a frame, but it seems like I can't find the frame.</p>
  
  <p>I tried the following</p>
  
  <pre><code>var frame = parent.frames["Interface"];
  
  var frame = window.frames["Interface"];
  </code></pre>
  
  <p>Both return <code>undefined</code> and I basically just don't understand how (if?) I can access this element, provided the information bellow:</p>
  
  <p>The "achitecture" of the document is the following:</p>
  
  <p><a href="https://i.stack.imgur.com/08tGH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/08tGH.png" alt="enter image description here"></a></p>
  
  <p>I need to access an element, using its ID, within the frame "Interface" that is somewhere in the body outlined in the image.</p>
  
  <p>When I print the <code>window</code> variable, I get the following:</p>
  
  <p><a href="https://i.stack.imgur.com/I04zu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I04zu.png" alt="enter image description here"></a></p>