JavaScript Reference/Javascript Methods/resizeBy
"resizeBy()" Example
<source lang="javascript">
<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>
</source>
"resizeBy()" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |window | +----------------+--------------------------------------------------------------+
</source>
"resizeBy()" Syntax, Parameters and Note
<source lang="javascript">
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. </source>