Pointer to a nonnegative long integer that specifies the height, in pixels.
The property is read-only.
The property has no default value.
Remarks
The height is the distance between the top and bottom edges of the object's content.
For more information about how to access the dimension and location of objects on the page through the Dynamic HTML (DHTML) Object Model, see>Measuring Element Dimension and Location.
Example
This example uses the scrollHeight property to retrieve the height of the viewable content.
<SCRIPT>
function fnCheckScroll(){
var iNewHeight = oDiv.scrollHeight;
alert("The value of the scrollHeight property is: "
+ iNewHeight);
}
</SCRIPT>
:
<DIV ID=oDiv STYLE="overflow:scroll; height=100;
width=250; text-align:left">
:
</DIV>
<INPUT TYPE=button VALUE="Check scrollHeight"
onclick="fnCheckScroll()">
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.
Standards Information
There is no public standard that applies to this property.