i am running the following script:

Code:
    <script language="javascript" type="text/javascript"> 
      function closeWindow() { 
      window.open('','_parent',''); 
      window.close(); 
    } 
    </script>
i am trying to close the window and it works for all browsers except firefox. i am not trying to close a popup window, but rather the main window. is there a better method that closes for all browsers?

Last edited by shabbir; 23Jun2009 at 20:25.. Reason: Code blocks