TOC PREV NEXT INDEX

domref



window.moveTo()


Moves the window to the specified coordinates.

Syntax

window.moveTo(x, y)
 

Parameters

x is the horizontal coordinate to be moved to.

y is the vertical coordinate to be moved to.

Example

function origin() {
 
   // moves to top left corner of screen
 
   window.moveTo(0, 0) 
 
}
 

Notes

This function moves the window absolutely while window.moveBy() moves the window relative to its current location.

Specification

DOM Level 0. Not part of specification.
 


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