<html>
<head>
<script type="text/javascript">
<!--
function confirmation() {
var value = confirm("Do you want to continue ?");
if (value == true) {
alert("You want to continue!");
return true;
} else {
alert("You do not want to continue!");
return false;
}
}
//-->
</script>
</head>
<body>
<p>
Click this button to see the result:
</p>
<form>
<input type="button" value="Click" onclick="confirmation();" />
</form>
</body>
</html>