Thomas Schumburg: window.open Fenster zentrieren!?

Beitrag lesen

Warum klappt das nicht???

Ich möchte doch einfach nur daß das mit window.open geöffnete Fenster zentriert erscheint!

Ich habe folgendes Script:

<!--
browser = 0;
browsertype = navigator.userAgent;

fensterbreite = document.body.clientWidth;
fensterhoehe = document.body.clientHight;

x=fensterbreite/2-485;
y=fensterhoehe/2-350;

if (browsertype != "")
if (browsertype.indexOf("MSIE 3.",0) > 0) browser = 5;
else if (browsertype.indexOf("Opera",0) > 0) browser = 4;
else if (browsertype.indexOf("MSIE 4.",0) > 0) browser = 6;
else if (browsertype.indexOf("MSIE 5.",0) > 0) browser = 7;
else if (browsertype.indexOf("zilla/2.",0) > 0) browser = 1;
else if (browsertype.indexOf("zilla/3.",0) > 0) browser = 2;
else if (browsertype.indexOf("zilla/4.",0) > 0) browser = 3;

else browser = 0;

if (browser != "")
if (browser == 0) window.location.href = "main/hinweise.htm"
else if (browser == 1) window.location.href = "main/hinweise.htm"
else if (browser == 2) window.location.href = "netscape/frames.htm"
else if (browser == 3) window.location.href = "netscape/frames.htm"
else if (browser == 4) window.location.href = "main/hinweise.htm"
else if (browser == 5) window.location.href = "main/hinweise.htm"
else window.open ('exodus.htm','popup','moveTo(x,y)','scrollbars=auto,width=970,height=700')
// -->

Was mache ich falsch??
Bitte hilfe....