Open URL in new window

0 favourites
  • 4 posts
From the Asset Store
Kids Game
$49 USD
New Sounds Added Update: 115 new sound effects added for no additional cost!
  • How do I use the built in browser object to open a URL in a new tab or in a new browser window?

    Jason

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • you actually can't with the way it is implemented.

    You would have to add a function to the plugin.

    And the runtime would go along :

    acts.GoToNewURL = function (url,tab)
         {
              window.open(url,tab);
         };
    

    Where url (destination url) and tab (name of the new tab/window) are both strings.

    The new tab/window depends on how the user set its browser, if it is to open tabs or windows.

    Nothing you can do about this one.

  • Something like this could be extremely useful considering how much Adobe Flash has been utilized for designing flash websites. Just thinking of the possibilities. C2 could essentially be used to design entire dynamic websites just as flash has been used to do so if one were so inclined...

  • This is an old thread - since it was posted the browser object has had an 'Open URL in new window' action added.

    Note: neither Flash nor Construct 2 are designed for making websites. Usability experts have always advised against using Flash to make websites, and the same pretty much applies to Construct 2 - it's a tool for making games, not websites.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)