<script language="JavaScript" type="text/javascript">
<!--
a = confirm('confermi ?');
if (a == true) {
alert('hai confemato');
} else {
alert('non hai confemato');
} //
//-->
</script>