When opening a new window, you have to take all browsers into account: For Internet Explorer, set the left and top options; all other browsers work with screenX and screenY. The following window.open() call creates a window in the top-left corner of the screen. window.open( "anypage.html", "name", "left=0,top=0,screenX=0,screenY=0"); However, for existing windows, two methods that are quite similar to the previous phrase come into play:
Moving a Window (moveby.html)
Warning Moving a window is almost as unfriendly as resizing it, so once again, use this capability wisely. Also note that you cannot move the window completely out of the user's sight, for obvious security reasons. |