5 Replies Latest reply on Aug 11, 2010 12:41 AM by Madhav Subedi

    Close browser

    SiHoop Level 1

      I'm trying to close my browser by clicking on a button. I've tried the following but it does not work for me. I'm using Firefox.

             var urlString:String = "javascript:self.close()";
             var request:URLRequest = new URLRequest(urlString);
      navigateToURL(request, "_self");


      Is there a way to close the browser with code in the flex file?