Bonjour tous

J'ai un agenda, lorsque je clic sur une case ouvre un lien, tout fonctionne parfaitement.
Cependant, j'aimerai diriger l'ouverture de ce lien via un TARGET genre target="_self" mais je n'y parviens pas.

Pourriez vous m'aider

voici un bout de mon code

Code html : 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<table class="tableau"><caption><?php echo $titre ;?></caption>
<tr><th>Lun</th><th>Mar</th><th>Mer</th><th>Jeu</th><th>Ven</th><th>Sam</th><th>Dim</th></tr>
<tr>
<?php
//echo $y;
$case=0;
if($x>1)
        for($i=1;$i<$x;$i++)
        {
                echo '<td class="desactive">&nbsp;</td>';
                $case++;
        }
for($i=1;$i<($l_day+1);$i++)
{
        $f=$y=date("N", mktime(0, 0, 0, $mois,$i , $annee));
        if($i<10)
                $jj="0".$i;
        else
                $jj=$i;
        if($mois<10)
                $mm="0".$mois;
        else
                $mm=$mois;
        $da=$annee."-".$mm."-".$jj;
        $lien=$lien_redir;
        $lien.="?dt=".$da;
        echo "<td";
        if(in_array($da, $list_spe))
        {
                echo " class='special' onmouseover='over(this,1,2)'";
                if($clic==1||$clic==2)
                        echo " onclick='go_lien(\"$lien\",this)' ";
        }
        else if(in_array($f, $list_fer))
        {
                echo " class='ferier' onmouseover='over(this,2,2)'";
                if($clic==1)
                        echo " onclick='go_lien(\"$lien\",this)' ";
        }
        else 
        {
                echo" onmouseover='over(this,0,2)' ";
                if($clic==1)
                        echo " onclick='go_lien(\"$lien\",this)' ";
        }
        echo" onmouseout='over(this,0,1)'>$i</td>";
        $case++;
        if($case%7==0)
                echo "</tr><tr>";
        
}
if($y!=7)
        for($i=$y;$i<7;$i++)
        {
                echo '<td class="desactive">&nbsp;</td>';
        }
?></tr>
</table>

merci