ciao a tutti
come da Oggetto vorrei sapere come posso fare ad aprire un pop up centrato a risoluzione che si apra in automatico all apertura della pagina!

ho qs codice per aprire pop up centrato:

<script language=JavaScript>
function openpopupCart() {
var w = screen.width;
var h = screen.height;
var larghezza = 370
var altezza = 320
var x = Math.round(w / 2) - Math.round(larghezza / 2);
var y = Math.round(h / 2) - Math.round(altezza / 2);
finestra = window.open ('cartina.htm','name',' width=' + larghezza + ',height=' + altezza +',top=' + y + 'screenY=' + y +',left=' + x + ',screenX=' + x)
}
</SCRIPT>

ma ora vorrei che mi si aprisse in automatico all' apertura del sito!!

ciao a tutti
Rinaldo