Open Url in New Tab Not in Pop Up

Razvan3486

  • Posts: 27
Hello, i have i problem with get Url. When I click more games opens a popup page, but I want the new tab. 
I tried this  :
Code: [Select]
navigateToURL(new URLRequest("http://www.url.com" "_blank")); but don't work. Chrome blocks all pop-ups.  Offer $ 10 if someone can help me to open url in new tab in chrome.

Hectate

  • *
  • Posts: 4643
As I stated in your other thread:
AFAIK there is no way to control this behavior. All you get to do is tell it to open a URL (either current window or new window) and the user's browser's settings determines what it actually does with it at that point. Most modern browsers' default settings are to open a new tab, not a new window.

By submitting the request with the parameter "_blank" you are asking for a new window. Again, the browser's settings should determine if that's actually a new window or a new tab. The user's preferences will determine the result.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

Razvan3486

  • Posts: 27
If i put this code  :
Code: [Select]
navigateToURL (new URLRequest ("http://www.url.com")) or
Code: [Select]
navigateToURL (new URLRequest ("http://blog.activetofocus.com"), "_blank"); chrome open this link in pop up, but if i use this code
Code: [Select]
navigateToURL (new URLRequest ("http://blog.activetofocus.com"), "_self"); open link in self not in pop up. But i want to open the link in new tab as happens in all games online