Forum Moderators: open
Is there something wrong with this:
It should be...
<body onload="setTimeout('window.close()',1000)">
birdbrain
Check your IE6 Security and Privacy settings to ensure that the browser has permission to execute Javascript code that pertains to windows. If this is the PRIMARY or parent window, then you need special permission to close it without alerting the user. If it is a child window, opened by Javascript, then there is no such security issue.
Can we assume you are not receiving an alert?
Check your XP firewall settings for the same permissions. If you're running SP2, there's a bit more to do, probably involving resetting your firewall settings to the way they were before you installed SP2 (and defeating most of the security patches in SP2 at the same time!)
Birdbrain is right in that the function you want to execut needs to be enclosed. You might also assign the timeout to a variable, i.e.:
closeWin=setTimeout('self.close',10000)
I don't know all the implications, but I've seen some browsers repeating timeout instructions over and over again without the variable. You need the variable in order to clearTimeout(closeWin), so it's clear invoking the functions with or without the variable are treated differently at some level.
Note I suggest you use "self.close" instead of "window.close", because it's a little more specific.