The javascript code:
PHP Code:
<script language=Javascript>
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,
statusbar=0,menubar=0,resizable=0,width=300,height=500,
left=((screen.width/2)-150),top=((screen.height/2)-250)');");
}
</script>
What I've done here is replaced fixed size values for left and top wich I used on my 1024x768 resolution to make the pop centered. However, when I did the screen/2 method, it pops in the upper left corner, not centered.
Any ideas why?
Thanks
Bookmarks