popup dimensionati e posizionati





' ricordati di andare su impostazione CROME e modificare in Privacy i Popup



<!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>
<script type="text/javascript">
<!--
var stile = "top=100, left=200, width=250, height=200, status=no, menubar=no, toolbar=no scrollbars=no";
function Popup(apri)
{
window.open('RicordaOLD.html', "", stile);
}
//-->
</script>
<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("RicordaOLD.html","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);

}
//-->
</script>

<script type="text/javascript">
<!--
function autoPopup() {
alert("annaffia orchidee" );
var w = 400;
var h = 250;
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);
var stili = "top=" + t + ", left=" + t + ", width=" + w + ", height=" + h + ", status=no, menubar=no, toolbar=no scrollbars=no";
var params = "scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no, width=600,height=300,left=100,top=100";

https://it.javascript.info/popup-windows


var testo = window.open('/', 'test', params);
testo.document.write("<html>");
testo.document.write(" <head>");
testo.document.write(" <title>Annaffiamento orchidee</title>");
testo.document.write(" <basefont size=2 face=Tahoma>");
testo.document.write(" </head>");
testo.document.write("<body topmargin=50>");
testo.document.write("<div align=center><h1><b>oggi 9 marzo 2024 <br>annaffiare orchidee</h1></div>");
testo.document.write("</body>");
testo.document.write("</html>");
}
//-->
</script>


</head>

<body >
<a href="javascript:Popup('mioFile.htm')">Apri la popup</a>
<br />
<a href="javascript:PopupCentrata()">Apri la popup al centro </a><br />
<a href="javascript:autoPopup()">scrivi messaggio la popup</a>
</body>
</html>










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