website logo
Auteur
avatar
steph60

Forum » » Le coin des codeurs » » comment mettre des conditions sur un !onload! ?


Posté : 23 févr. 2004 à 09:18 icone du post

Bon, finalement j'ai trouvé :

<body <?php $logiciel = "logiciels/".$row_logiciels['nom_logiciel'].".exe";
if (file_exists($logiciel)) {
echo "!onload!=\"ouvre=window.open('$logiciel', '_blank')\""; }?>>

Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=10154&forum=5