Aprire una finestra centrata nello schermo




<script type="text/javascript">
<!--
function PopupCentrata()
{
var w = 400;
var h = 250;
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);

window.open("mioFile.htm","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
//-->
</script>

</head>

<body>

<a href="javascript:PopupCentrata()">Apri la popup</a>




oppure

<a href="#"
onClick="window.open ('pagina.html','newWin', 'scrollbars=no,status=no,resizable=no,top=100,left=150,width=500,height=250');">immagine</a>












( aprireunafinestracentratanelloschermo.html )- by Paolo Puglisi - Modifica del 17/12/2023