What exactly does \"contentDocument\" represent for an iframe (or even the old \"frame\" element)? Is it equivalent to the \"html\" element or the \"body\" element ? What is
contentDocument represents the document of an iframe (DOM object). It is not equivalent to html since documents have their own properties, however if you type:
myFrame.contentDocument.body
You will get the body itself.
It is supported in all the browsers, with a tiny modification: for Internet Explorer use
myFrame.contentWindow.document
Enjoy, Nili