Double image

malupeca -  
pasthou Messages postés 11309 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour,
J'ai utilisé le code suivant avec succès pour ouvrir une image dans une nouvelle fenêtre

<a href="http://www.avicultura.com/guias/docs/lohmann-Gen.jpg" onclick="window.open('http://www.avicultura.com/guias/docs/lohmann-Gen.jpg','Lohmann','width=400,height=500')"><img src="http://www.avicultura.com/guias/docs/lohmann-MINI-Gen.gif"></a>

L'image s'ouvre dans une nouvelle fenêtre: OK mais elle s'OUVRE AUSSI DANS LA FENÊTRE D'ORIGINE. Donc je perds le contenu d'origine.
Où est mon erreur??

Merci de vos réponses.
A voir également:

1 réponse

pasthou Messages postés 11309 Date d'inscription   Statut Membre Dernière intervention   1 523
 
..il te manque la balise target="_blank"
Moi j'essaierai ça :

<a href="http://www.avicultura.com/guias/docs/lohmann-Gen.jpg" target="_blank" onclick="window.open('http://www.avicultura.com/guias/docs/lohmann-Gen.jpg','Lohmann','width=400,height=500')"><img src="http://www.avicultura.com/guias/docs/lohmann-MINI-Gen.gif"></a>

@+
Pasthou
0