Window resizeTo() Method
Window Object
Definition and Usage
The resizeTo() method resizes a window to the specified width and height.
Syntax
| Parameter |
Description |
| width |
Required. Sets the width of the window, in pixels |
| height |
Required. Sets the height of the window, in pixels |
Browser Support

The resizeTo() method is supported in all major browsers, except Opera and
Chrome.
Example
Example
Set the window to a width of 500px, and the height to 300px:
<html>
<head>
<script type="text/javascript">
function resizeWindow()
{
window.resizeTo(500,300)
}
</script>
</head>
<body>
<input type="button" onclick="resizeWindow()"
value="Resize window" />
</body>
</html>
|
Try it yourself »
|
Window Object
Stylus Studio® 2010 XML Enterprise Suite raises the bar for productivity in XML development tools.
Millions of XML developers and data integration specialists turn to Stylus Studio's comprehensive and intuitive
XML toolset to tackle today's advanced XML data transformation and aggregation challenges.
|
- XML Pipeline Editor, Debugger and Code Generator
- DataDirect XML Converters
- XQuery Mapper, Editor, Debugger, and Profiler
- XSLT Mapper, Editor, Debugger, Designer, and Profiler
- Java and C# for .Net Code Generation
- XML Schema Designer With Documentation Generator
- XML Editor With Full XPath Integration
Download a free trial now
|
|