TOC PREV NEXT INDEX

Put your logo here!


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

html


mozilla.org | mailto:oeschger | bug 93108
TOC PREV NEXT INDEX