Browser "GoToURL" ->

0 favourites
  • 1 posts
From the Asset Store
A single chapter from the "Construct Starter Kit Collection" workshop for social studies or history classes.
  • Hi Ashley

    I found one sponsor that requesting that the game is open in and not window.location

    "Notice: The games are loaded inside an iframe, so the link must be opened in the top window. If you are using a HTML link, please add the attribute target="_top". When using javascript to open the link, use (and not window.location.href)"

    When I looked at the Browser plugin I found out that the plugin codes for GoToURL is this

    Acts.prototype.GoToURL = function (url)


    if (this.runtime.isCocoonJs)


    else if (this.runtime.isEjecta)


    else if (this.runtime.isWinJS)

    Windows["System"]["Launcher"]["launchUriAsync"](new Windows["Foundation"]["Uri"](url));

    else if (!this.is_arcade && !this.runtime.isDomFree)

    window.location = url;


    Maybe we can add another parameter or option to the function like "top" or "normal" ?

    Right now I have to use Browser execute Javascript to solve this problem and I heard that some of the Construct 2 users are rejected or having problem with this Sponsor. Unless they use DOM or Browser execute Javascript.

    Hopefully this feature can be added in next release?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)