I have the following code that works fine in Firefox ...
if (!iFrame) iFrame = outerDoc.getElementById('_dialog_iframe'); var iFrameDoc = iFrame.contentWindow.document;
and the version of Chrome ...
if (!iFrame) iFrame = outerDoc.getElementById('_dialog_iframe'); var iFrameDoc = iFrame.document;
I test the code by getting iFrameDoc.body , when I run the FireFox code in Firefox, it works fine. However, the Chrome code returns undefined . What for? How to fix this so that it works fine in Chrome?
javascript google-chrome google-chrome-extension iframe
Skizit
source share