+9 votes

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)

in Engine by (27 points)

1 Answer

+16 votes
Best answer

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")

by (922 points)
selected by
OH AWESOME!!! thank you!
@Mainman002 ~ if this answer was correct, you should mark it as "accepted" :)
Super new here. . . I didn't know what that big check mark was Lol

This does not seem to work on Android

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.