I\'m trying to figure out the best way to access an element\'s window and document properties from a parent page. The <
all of the modern browsers except Chrome support both iframereference.contentWindow and iframereference.contentDocument, but only if the page opened in the iframe is on the same domain as the page containing the iframe.
To include Chrome, use var iwin=iframereference.contentWindow,
idoc=iwin.document;
.contentDocument is the window.document of the page in the iframe,
as is contentWindow.document, but not .contentDocument.document.
Chrome may include support for .contentDocument in some future version- I hope so, because it is also the way all the other browsers find the document contained in an Object element, type text/html, where the data attribute is the url of an html page.