JavaScript Reference/Javascript Methods/resizeBy
"resizeBy()" Example
<html>
<body>
<script language="JavaScript">
function function1(){
window.resizeBy(-100,-100);
}
</script>
<input type="button" value="Resize this window by (-100,-100)" onClick="function1();">
</body>
</html>
"resizeBy()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |window |
+----------------+--------------------------------------------------------------+
"resizeBy()" Syntax, Parameters and Note
Note:
Resizes the window by the specified values, preserving the window"s
left and top positions.
Syntax:
window.resizeBy(param1, param2)
Parameters:
param1 Required; the number of pixels by which to resize the width.
param2 Required; the number of pixels by which to resize the height.