Forum Moderators: open
To center a window you would need to get the screen width of the user, subtract the window width and then divide by 2. And do the same for the height.
window.moveTo(((screen.availWidth-browserWidth)/2), ((screen.availHeight-browserHeight)/2));
This is assuming you know the browser width and height, since you just resized it. If not use...
if (document.layers){
browserWidth=window.outerWidth;
browserHeight=window.outerHeight;
}
if (document.all){
browserWidth=document.body.clientWidth;
browserHeight=document.body.clientHeight;
}