<input type="button" onclick="if(confirm('sei sicuro?'))funzione();">

Ciao
Michele