0 Replies Latest reply: Jan 29, 2013 5:08 AM by Flex_Query RSS

    Java script is not working in Chrome


      The code below works fine on IE and FF but not on Google Chrome.

      Please can someone help me to find out the mistake?.    Thanks In Advance.



      Flex Code:


      Public function init():void


      ExternalInterface.addCallback("getCloseConfirmMessage", closeConfirmMessage);




      Public function closeConfirmMessage():void


            //Code Here



      Java Script :


        <script language="javascript" type="text/javascript">

                      var fxControl;

                      function confirmClose()


      alert("Please click OK to end the session");



                      function setUpBeforeUnload( appName )


                                      fxControl = document[ appName ] || window[ appName ];                       

                                    window.onbeforeunload = confirmClose;