I've got the following code which works fine in Firefox...
if (!iFrame) iFrame = outerDoc.getElementById('_dialog_iframe');
var iFrameDoc = iFrame.contentWindow.document; // get iframe doc
and the Chrome version...
if (!iFrame) iFrame = outerDoc.getElementById('_dialog_iframe');
var iFrameDoc = iFrame.document; // get iframe doc
I'm testing the code be getting iFrameDoc.body
when I run the FireFox code in Firefox it works fine. However, the Chrome code returns undefined
. Why? How do I fix this so that it'll work fine in Chrome?