TOC PREV NEXT INDEX

domref



window.resizeTo()


Dynamically resizes window.

Syntax

window.resizeTo(iWidth, iHeight)
 

Parameters

iWidth is an integer representing the new width in pixels.

iHeight is an integer value representing the new height in pixels.

Example

// function resizes the window to take up half
 
// of the available screen.
 
function halve() {
 
  window.resizeTo(window.screen.availWidth/2,      window.screen.availHeight/2);
 
}
 

Notes

See also window.resizeBy().

Specification

DOM Level 0. Not part of specification.
 


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