JAVASCRIPT no JAVA

cmq tra i tag <head></head>

<script>
var doPopUpX = (screen.width/2)-200;
var doPopUpY = (screen.height/2)-200;
var pos = "left="+doPopUpX+",top="+doPopUpY;

function doPopUp(){
doPopUpWindow = window.open("tua_pagina.html","tua_popup","width=4 00,height=400,"+pos);
}
</script>


Nel BODY

Lancia POPUP


Con qst codice ti viene fuori iuna popup 400x400 autocentrata