Bonjour

Bon voilà je fais un test je sais pas si c'est possible.
Quand je charge ma page html j'aimerai qu'une popup se charge mais avec une condition...

voila le code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
    <head>
        <title>Test copie de dossier</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	    </script>
<script language="JavaScript">
//PLF-http://www.jejavascript.net/
function OuvrirPop(url,nom,haut,Gauche,largeur,hauteur,options) {
ouvpop=window.open(url,nom,"top="+haut+",left="+Gauche+",width="+largeur+",height="+hauteur+","+options);
}
</script> 
    </head>
    <body> 
    <?
   $test="Vrai";
	if($test=="Vrai")
	{
		echo 'javascript:OuvrirPop("fenetre_popup.html","fencent",10,10,480,60,"menubar=no,scrollbars=no,statusbar=no")';
	}
    ?>
    </body>    
</html>
C'est un code tout simple mais ça marche pas...