!! Popup al centro DIMENSIONATO





https://forum.it.altervista.org/javascript-e-altri-linguaggi-di-scripting/72343-popup-centrato.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento senza titolo</title>
</head>

<script language="JavaScript">
function newWindow(mypage,myname,w,h,features) {
if(screen.width){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
}else{winl = 0;wint =0;}
if (winl < 0) winl = 0;
if (wint < 0) wint = 0;
var settings = 'height=' + h + ',';
settings += 'width=' + w + ',';
settings += 'top=' + wint + ',';
settings += 'left=' + winl + ',';
settings += features;
win = window.open(mypage,myname,settings);
win.window.focus();
}
</script>



</head>

<body>
<a href="JavaScript:newWindow('RicordaOLD.html','popup',500,200,'')">Nuova pagina Centrale... Un Esempio</a>





</body>
</html>










( popupalcentrodimensionato.html )- by Paolo Puglisi - Modifica del 2/5/2024