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?
For example - main page will create 2 same divs with iframe inside
<div class="window"><iframe src="./testPage.html"></iframe></div>
<div class="window"><iframe src="./testPage.html"></iframe></div>
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).
I hope it is understandable, sorry for my english :)