excusez-moi il y avait une erreur (il manquait des ")
pour ouvrir dans une nouvelle fenêtre tout en respectant la norme W3C voici comment faire :
exemple : <a onkeypress="if (!this.isContentEditable) return !window.open(this.href,'blank');" title="Ouverture de la page www.w3c.org dans une nouvelle fenêtre" onclick="if (!this.isContentEditable) return !window.open(this.href,'blank');" href="
http://www.w3c.org">Lien vers www.w3c.org</a>
bien sur 'Lien vers www.w3c.org' peut être remplacer par une image
exemple : <a onkeypress="if (!this.isContentEditable) return !window.open(this.href,'blank');" title="Ouverture de la page www.w3c.org dans une nouvelle fenêtre" onclick="if (!this.isContentEditable) return !window.open(this.href,'blank');" href="
http://www.w3c.org"><img height="31" alt="Site conforme à la norme XHTML 1.0" src="images/xhtml10.gif" width="88" /></a>
Donc un peu de javasript :
function PopupWindow(source, strWindowToOpen){
var strWindowFeatures = "toolbar=no,resize=no,titlebar=no,";
strWindowFeatures = strWindowFeatures + "menubar=no,width=413,height=299,maximize=null";
window.open(strWindowToOpen, '', strWindowFeatures); }
et pour le lien :
<a href="javascript:PopupWindow(this,'http://VOTRE ADRESSE ICI');"> Ex: cliquez ici</a>
Et voila, avec 6ans de retard mais cette solution ouvre bien une nouvelle fenêtre de 413x299