7 Replies Latest reply: Aug 10, 2012 7:12 AM by Ned Murphy RSS

    javascript window opening problem

    Venkom Community Member

      i'am trying to open popup window with adding my pageURL.

      But not working in my code. what am i wrong? (not open any window)



      var pageURL:String = ExternalInterface.call("getPageurl");
      more_bmarks..addEventListener(MouseEvent.CLICK, bmClick);
      function bmClick(event:MouseEvent):void
                var address:String = "window.open('http://api.addthis.com/oexchange/0.8/offer?url=','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=Yes,fullscreen=No')";
                var desiredURL:URLRequest = new URLRequest("javascript:"+ address + pageURL +  "void(0);");
                navigateToURL(desiredURL, "_self");