« Gecko DOM Reference
Summary
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 one quarter
// of the available screen.
function quarter() {
window.resizeTo(window.screen.availWidth/2,
window.screen.availHeight/2);
}
Specification
DOM Level 0. Not part of specification.