View Single Post
Old 06-01-2007   #2 (permalink)
notjustgraphics
Rusty Bio-Hazard!
 
notjustgraphics's Avatar
 
Join Date: Sep 2006
Location: Toronto, Ontario, Canada
Posts: 1,163

Send a message via MSN to notjustgraphics
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.
__________________
notjustgraphics is offline