2 Replies Latest reply on Mar 20, 2007 9:22 AM by Ertz_P.

    How To Close a Browser Window

    JuliaO Level 1
      Hello,

      I'm trying to figure out what I'm missing! I've added a close button to a Flash Player 8 file that is running in a browser window. When the user clicks the close button I want the browser window to close. The code on my button that I've tried is:

      getURL("javascript:window.close();");
      and
      getURL("javascript:window.open('','_parent','');window.close();");
      and
      getURL("javascript:window.opener=self; window.close()");

      None of these will close either a Safari or a Firefox window, but it works in IE. Am I missing something?

      Thanks,


      Julia