I have a IFrame called "dataFrame". Does anybody know the difference between
Code:
document.getElementById('dataFrame').height
This returns the height of the entire object, in this case, the iframe named 'dataFrame' including margins and borders.
and
Code:
document.getElementById('dataFrame').Document.body.scrollHeight;
This returns the height of the viewable port of a scrollable element without margins and broder, in this case, the iframe named 'dataFrame'.
DOM:element.scrollHeight - MDC
and
Code:
document.getElementById('dataFrame').style.height
This returns the height of an element set through CSS such as a DIV.
Hope this helps.
Mike.