HTML DOM resizeBy() Method
Complete Window Object Reference
Definition and Usage
The resizeBy() method is used to resize a window by the specified pixels.
Syntax
| Parameter |
Description |
| width |
Required. How many pixels to resize the width by.
Can be a positive or a negative number |
| height |
Optional. How many pixels to resize the height by. Can be a positive or a negative number |
Example
The following example resizes the window with 100px each way:
<html>
<head>
<script type="text/javascript">
function resizeWindow()
{
window.resizeBy(-100,-100)
}
</script>
</head>
<body>
<input type="button" onclick="resizeWindow()"
value="Resize window">
</body>
</html>
|
Try-It-Yourself Demos
Resize a window
Complete Window Object Reference
Want To Be A Web Master?
If you want to be a Web Master, you will have to host your web site with an ISP (Internet Service Provider).
MaximumASP offers seven different configurations of dedicated servers to meet your Windows and .NET hosting needs.
Hosted on our multi-tiered Enterprise Class network, these servers provide the performance, security and reliability
you need to host your high end web sites and applications.
Visit MaximumASP
|