adding an http:// link to a button?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Mainman002
:warning: Old Version Published before Godot 3 was released.

is there any way that I could open an http:// link using a button node? this link would need to open or give a choice to open it using the default web browser or an external web browser choice (android tablet / pc browser)

:bust_in_silhouette: Reply From: Hinsbart

Yes, it’s easy. Just use OS.shell_open() with the URL when the button is pressed.
Like this: OS.shell_open("http://godotengine.org")

OH AWESOME!!! thank you!

Mainman002 | 2016-02-28 21:24

@Mainman002 ~ if this answer was correct, you should mark it as “accepted” :slight_smile:

Bojidar Marinov | 2016-02-29 13:37

Super new here. . . I didn’t know what that big check mark was Lol

Mainman002 | 2016-03-01 00:34

This does not seem to work on Android

kyla | 2018-01-15 08:27