Javascript Reference
Categories: window

javascript window resizeBy( )

@March 15, 2008, 1:22 a.m.
resizeBy( )Firefox/Netscape/NN 4 IE 4 Chrome/Safari/DOM n/a  

resizeBy(deltaX, deltaY)

  

This is a convenience method that shifts the width and height of the window by specified pixel amounts. To adjust along only one axis, set the other value to zero. Positive values for deltaX make the window wider; negative values make the window narrower. Positive values for deltaY make the window taller; negative values make the window shorter. The top and left edges remain fixed; only the right and bottom edges are moved.

 
Parameters
 
  • Positive or negative pixel count of the change in horizontal dimension of the window.
  • Positive or negative pixel count of the change in vertical dimension of the window.
 
Returned Value

None.


Powered by Linode.