Voici un exemple
si on clique sur oui alors on executera la page test.php
echo '<a href="#" onclick="if(confirm(\'Etes vous sur de vouloir supprimer cette article\')) document.location.href=\'../php/test.php'\'"><img src="../img/poubelle.png" width="10px"></a>';


