Confirm( )
•
<script>
var x = confirm ("Are you sure you are
ok?");
if (x)
alert ("Good!");
else
alert ("Too bad");
</script>