Bonjour a tous.

Petite question bête

Je me suis bricolé une petite popup qui m'affiche une image et quelques infos associés.

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
<script type="text/javascript">
 
function popimage(img,titre,domaine,sous_domaine,type,centre,locageo,locaferro,gps,locakilometrique,legende,poids,taille_image,id_fichier, date,nom) {
//var titres=titre;
var w=open("",'image','width=680,height=670,toolbar=no,scrollbars=no,resizable=no');
 
//w.document.write("<script type='text/javascript'>function checksize() { if (document.images[0].complete) { window.resizeTo(500,500); window.focus();} else { settimeout('checksize()',250) } }</"+"script>");
 
w.document.write("<body onload='checksize()' /*onblur='window.close()'*/ /*onclick='window.close()'*/ topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>");
w.document.write("<h2 style='float:left;text-transform:uppercase;width:100%;background-color:#6e267b;color:#FFF;font-size:1em;text-align:center;padding:2px 0px;margin:2px 0 -20px 0px;'>"+titre+"</h2><br/>");
w.document.write("<img src='"+img+"'  alt='image' width=650px height=450px style='margin-left:15px;  margin-top:12px;'/><br/>");
w.document.write("<div style=\"border: 2px groove #6B247B;  padding-top:15px; padding-left:45px; padding-bottom:15px; margin-left:15px; margin-top:7px; width=650px\"><span>Date de prise de vue:<span style='color=grey;'>"+date+"</span><br/>Légende: <span style='color=grey;'>"+nom+"</span><br/>Thématique:  <span style='color=grey;'>"+domaine+"</span><br/>Catégorie: <span style='color=grey;'>"+sous_domaine+"</span><br/>Centre SNCF: <span style='color=grey;'>"+centre+"</span><br/>Localisation géographique: <span style='color=grey;'>"+locageo+"</span><br/>Localisation ferroviaire: <span style='color=grey;'>"+locaferro+"</span></span><br/></div>");
 
 
w.document.close();
}
 
</script>
On me demande de mettre des liens dans cette popup.

Voici mon soucis. Quand je mets un lien cela me redirige au clic la popup (normal ).
Sauriez vous me dire si il y a moyen de rediriger la fenêtre mère et non la fille.

Merci d'avance.