gui.OpenURL
From Garry's Mod
gui.OpenURL( )
Contents |
Description
Opens specified URL in the steam overlay browser. The URL has to start with either http:// or https://
NOTE |
User will be asked for confirmation before the website will open. |
BUG |
You can't click the confirmation if a modal panel has focus. Issue Tracker: #3383 |
Arguments
string url
URL to open
Examples
Example
Opens a page when a button is clicked.
local button = vgui.Create( "DButton" ) button:SetSize( 125, 90 ) button:Center() button:SetText( "Join our Steam Group!" ) button.DoClick = function() gui.OpenURL( "http://steamcommunity.com/groups/glua" ) end