TOC PREV NEXT INDEX

domref



window.moveBy()


Moves the current window by a specified amount.

Syntax

window.moveBy(deltaX, deltaY)
 

Parameters

deltaX is the amount of pixels to move the window horizontally.

deltaY is the amount of pixels to move the window vertically.

Example

function budge() {
 
   moveBy(10, -10);
 
}
 

Notes

You can use negative numbers as parameters for this function. This function makes a relative move while window.moveTo() makes an absolute move.

Specification

DOM Level 0. Not part of specification.
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX