Hi. I have the following code which seems to work fine in IE and opera, but not in firefox. <head> <script type="text/javascript"> <?php if(something....){ echo "self.close();"; }else{ //something else } ?> </script> </head> PHP: The window closes in IE and opera like it was supposed to, but nothing happends in firefox. Any ideas? EDIT: It seems to work fine if I open a single window, but not if I open the window in a tab...