Double image
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.
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.
Configuration: Windows Vista Internet Explorer 7.0
1 réponse
-
..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