I guess this may not be the best place to ask this, but maybe someone can help me out with this Javascript problem.
I'm using the following code to open a new window.
<script language=javascript>
void(window.open("index_frames.php", "webzone",
"toolbar=NO,scroolbars=NO,resizable=NO,width=640,height=500"));
</script>
It it 640*500.
What I need to do, is make this window become centered in the screen. As in, having the same number of pixels in the left & right and the same numbers in the top and in the bottom.
something like this:
| ------ |
| | mw | |
| | | |
| ------ |
where 'mw' is my "new window" and the rest is the screen.
I was thinking about checking out the screen resolution, and then placing the window x coords from the top, x coords from the bottom, y coords from the rigth&left. But I don't know how I can do this.
If I wasn't explicit enough, please say so.
Thanks for your time.