Code:
<html>
<head>
<script language = "javascript">
function popdown() {
self.close();
}
</script>
</head>
<body onload = "popdown()">
</html>
Now IE prompts the user before closing the window.

Is there a way to close a window from itself that requires 0 user interaction?