He wasn't asking how to close the browser without prompting the user, he was asking how to detect if they chose "No" from the prompt. Here's the solution:
<script>
function closeWindow(){
window.close()
setTimeout("stillOpen()",50)
}
function stillOpen(){
alert('This get executed if they choose No');
}
</script>
Adam
while(ignorance==true){perpetuate(violence,fear,hatred);life--};