I found a little security glitch in IE that is actualy useful! (sometimes).
I'm working on a web application that when browsed to pops up the application in a new window. I then minimize the main IE window with some script. What I wanted to do is to close this window, of course you are not allowed to do this without IE poping up a message to confim tat a script is closing the window.
Or so I thought! The following code tricks IE in to allowing this!
<script language=javascript>
var mywin = window.self;
mywin.opener = window.self;
mywin.close();
</script>