tpeck
09-22-2005, 09:15 AM
Warnings aside about the desirability of the following, there are two things I would like to be able to do with a popup window:
1. resize to my preferred dimensions
2. center the window, and at a predetermined distance from the top.
How can this be done?
So far I have:
*****************
function SetSize(){
window.resizeTo(800,600);
}
<body onLoad='SetSize();">
*****************
...which only satisfies the first preference. Any ideas on the centering and distance from the top?
Thanks,
Terry
1. resize to my preferred dimensions
2. center the window, and at a predetermined distance from the top.
How can this be done?
So far I have:
*****************
function SetSize(){
window.resizeTo(800,600);
}
<body onLoad='SetSize();">
*****************
...which only satisfies the first preference. Any ideas on the centering and distance from the top?
Thanks,
Terry