Skip navigation
Currently Being Moderated

javascript window opening problem

Aug 10, 2012 3:14 AM

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");
}
 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points