2 onclick xhtml

Bonjour,

Je veux ouvrir une page dans un nouvelle fenêtre avec un plus une demande de confirmation.

Donc faire un mélange de c'est 2 onclick :
onclick="window.open(this.href); return false;"
onclick="return confirm('Êtes-vous certain ?');"


Merci d'avance !

1 réponse

  1. onclick="if(confirm('Êtes-vous certain ?')) { window.open(this.href); } return false;"