2 Replies Latest reply on Apr 2, 2009 5:58 AM by anjiu

    How to Change browse window title?

    anjiu
      FileReference browse() method opens a browse window to let user select any file from his/her harddisk. I want to change the title of that browse window.

      Is it possible?? It is not for AIR it is for web application.

      Thanks
        • 1. Re: How to Change browse window title?
          flexstone Level 1
          In your Flex app add the following function

          private function changeBrowserTitle():void{
          if (ExternalInterface.available)
          {
          var myNewTitle="This is my new Title";
          ExternalInterface.call("changeTitle('"+myNewTitle+"')",null);
          }
          }

          In your HTML wrapper for your SWF file add the following Javascript:

          function changeTitle(T){
          //alert(T);
          document.title=T;
          }
          • 2. Re: How to Change browse window title?
            anjiu Level 1
            Thanks for reply.

            your code change the title of the browser. But I want to change the title of the window that comes when you browse for any file. For example if you go to your browser's File Menu and click on open menu then a browse window get opened. That window has a title. I want to change this title.

            Thanks