Browser window in new Tab?

0 favourites
  • 2 posts
From the Asset Store
Get Ready for the New Wave of "Bottom Screen" Games!
  • Using the Browser object Is there a way in Construct to force a web link that has been clicked on to open in a new tab rather than a new window?

    Seem to be having an issue in Chrome where the link is popping up in a new separate window rather than just being attached as a tab to the current browsing window.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The Browser Open URL in New Window action should open your link in a new tab (depending on your browser's settings). I don't think that opening in a new tab can be forced by Javascript if the default in the browser is set to open a new window. You can, however, force a new window to open....

    If you want to have some control over the new window that's opened then you could use the Browser.ExecuteJavascript:

    To control how new window is formatted:

    "window.open('http://www.w3schools.com/jsref/met_win_open.asp', '_blank', 'toolbar=yes,scrollbars=yes,resizable=yes,top=300,left=300,width=400,height=400');"[/code:263grg0m]
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)