title: Accessing iframe parent within iframe without id
body: <p>im creating modal windows with iframes inside of them dynamicly with js and im trying to figure out how i can get parents of that iframe from within to be able to manipulate that iframe specific window. Is it possible?</p>
  
  <p>For example - main page will create 2 same divs with iframe inside</p>
  
  <pre><code>&lt;div class="window"&gt;&lt;iframe src="./testPage.html"&gt;&lt;/iframe&gt;&lt;/div&gt;
  &lt;div class="window"&gt;&lt;iframe src="./testPage.html"&gt;&lt;/iframe&gt;&lt;/div&gt;
  </code></pre>
  
  <p>And i want to modify/remove or just simply get this $(".window") from testPage.html (iframe) but only that one which contains iframe where is testPage im actualy calling this script on (not both divs).</p>
  
  <p>I hope it is understandable, sorry for my english :)</p>