Ciao, ho il seguente codice:





<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>

<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("Popup_uno.php","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
//-->
</script>


<title>Untitled 1</title>
</head>

<body>

<?php

if(condizione vera)

{
Apri la popup

}
?>
</body>
</html>


Quando la condizione If risulta essere vera, dovrei fare in modo di aprire il popup automaticamente senza usare il link. Come posso fare? (sto usando php). Grazie.