TOC PREV NEXT INDEX

domref



height


height gets/sets the height of the current document.

Syntax

height_value = document.height
 
document.height = height_value
 

Parameters

height_value is a string representing the height of the document in pixels, inches, or ems. If no type is specified (e.g., "px" in 200px), the value is assumed to be the number of pixels.

Example

// make the window small on load
 
function onLoad() {
 
    document.height = "200";
 
    document.width = "200";
 
}
 

Notes

None.

Specification

height
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX