ctrlSetURL: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *Multiplayer Behaviour *= * " to " ")
m (Text replacement - " |game1= arma3dev |version1= 2.01" to " |game1= arma3 |version1= 2.02")
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


|game1= arma3dev
|game1= arma3


|version1= 2.01
|version1= 2.02


|gr1= GUI Control
|gr1= GUI Control

Revision as of 13:57, 23 February 2021

Hover & click on the images for description

Description

Description:
Sets URL property of the given control subject to allowedHTMLLoadURIs[] whitelisting in CfgCommands config. Supported controls are:
  • CT_BUTTON
  • CT_SHORTCUTBUTTON
  • CT_ACTIVETEXT
URL should be written in lower case including address prefix. For example HTTP://ARMA3.COM/ will not pass allowed filter validation but http://arma3.com/ will.
Groups:
GUI Control

Syntax

Syntax:
control ctrlSetURL URL
Parameters:
control: Control
URL: String
Return Value:
Nothing

Examples

Example 1:
_control ctrlSetURL "http://arma3.com/"; // note the forward slash / at the end

Additional Information

See also:
ctrlURL

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note