I have Html Layout Similar to this :
Parent Page > iFrame
I want to write dynamic iframe & content so the layout should look similar to this :
Parent > iFrame > Write New iFrame & It's Content
I'm able to write html content for child iframe using this code
Parent Page > iFrame > Hello World!
var ifrm = document.getElementById('myIframe');
ifrm = (ifrm.contentWindow) ? ifrm.contentWindow : (ifrm.contentDocument.document) ? ifrm.contentDocument.document : ifrm.contentDocument;
ifrm.document.open();
ifrm.document.write('Hello World!');
ifrm.document.close();
but How can I write same content inside :
Parent Page > iFrame > iFrame > Hello World ?
All iFrames are on same Domain.