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

    Java script is not working in Chrome

    Flex_Query Level 1

      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;