non è ke puoi fare la stessa cosa x il bottone?

<input type="button" onClick="confirm('sei sicuro di voler mandare?')" />