Closing a browser window without the confirmation-prompt
"The Web page you are viewing is trying to close the window.
Do you want to close this window?"
Internet Explorer is checking the window.opener object to see if the current window has been opened by another window. If not, it will display this question.
So, the little trick is to make sure that the window.opener object differs from undefined ;-)
<script language="javascript">
function CloseWindow() {
window.opener = 'http://kHSw.blogspot.com';
window.close();
}
</script>