javascript window innerHeight, innerWidth

innerHeight, innerWidthNN 4 IE n/a DOM n/a  

Read/Write  

Specify the pixel measure of the height and width of the content region of a browser window or frame. This area is where the document content appears, exclusive of all window "chrome." For comparable values in IE, see the body element object.

 
Example
 
window.innerWidth = 600;
window.innerHeight = 400;
 
Value

Integer.

 
Default

None.


2201,Nickname,Homepage or email,Comments here,Add comment