ctrlSetURL

From Bohemia Interactive Community
Revision as of 00:51, 23 January 2021 by Lou Montana (talk | contribs) (Text replacement - "{{Command " to "{{RV|type=command ")
Jump to navigation Jump to search
-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version |?]]
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

[[Category:Introduced with arma3dev version ?]][[ Category: arma3dev: New Scripting Commands | CTRLSETURL]][[ Category: arma3dev: Scripting Commands | CTRLSETURL]]