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
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|