Skip to content
Guillaume Gendre edited this page May 11, 2015 · 8 revisions

OpenExternal Url allows you to open an url into the device browser, instead of the current page.

For the moment, cobalt doesn't automatically open links with target=_blank because we think you may want to open them in the app. If you disagree, please create a discussion on the bug tracker !

cobalt.openExternalUrl(url)

url is the URL of the page you want to load in the browser.

example

cobalt.openExternalUrl("http://cobaltians.com")

Under the hood

This is the message to sent to native to show a toast.

{
    type: "intent",
    action: "openExternalUrl",
    data: {
        url: "http://www.cobaltians.com"
    }
}
Clone this wiki locally