|
|
|
|
|
window.resizeTo()
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.
| mozilla.org | mailto:oeschger | bug 93108 |
|
|
|
|
|