DOM:window.innerHeight
From MDC
Contents |
[edit] Summary
Height of the browser window viewport including, if rendered, the horizontal scrollbar.
[edit] Syntax
var intViewportHeight = window.innerHeight;
[edit] Value
intViewportHeight stores the window.innerHeight property value.
The window.innerHeight property is read-only; it has no default value. window.innerHeight property stores an integer representing a number of pixels.
[edit] Notes
The innerHeight property will be supported in any window object like a window, a frame, a frameset or a secondary window.
[edit] Example
Assuming a frameset
---------------------
var intFrameHeight = window.innerHeight; // or var intFrameHeight = self.innerHeight; /* will return the height of the frame viewport within the frameset */ var intFramesetHeight = parent.innerHeight; /* will return the height of the viewport of the closest frameset */ var intOuterFramesetHeight = top.innerHeight; /* will return the height of the viewport of the outermost frameset */
xxx To do: link to an interactive demo here xxx
See also window.innerWidth, window.outerHeight and window.outerWidth.
[edit] Graphical example
[edit] Standards information
DOM Level 0. Not part of any W3C technical specification or recommendation.
