WoW:API LaunchURL: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
{{wowapi}}
{{wowapi|removed=1.10.0}}
{{removedapi|1.10.0|}}


Launches an external web browser and navigates to the URL provided.
Launches an external web browser and navigates to the URL provided.


LaunchURL("URL")
LaunchURL("url")


----
== Parameters ==
;''Arguments''
=== Arguments ===
* URL (string) - URL of the website to open. Seems to only accept some URLs, works with base URL of the world of Warcraft websites, like wow-europe.com, worldofwarcraft.com, etc....


:''"URL": URL of the website to open. Seems to only accept some URLs, works with base URL of the world of warcraft websites (wow-europe.com, worldofwarcraft.com, etc).
=== Returns ===
: none


----
== Example ==
;''Returns''
LaunchURL("http://www.worldofwarcraft.com")


:;nil
;Result
 
----
;''Example''
<nowiki> LaunchURL("http://www.worldofwarcraft.com");</nowiki>
 
;''Result''
Navigates a new web browser window to http://www.worldofwarcraft.com
Navigates a new web browser window to http://www.worldofwarcraft.com


Note: this function still exists inside the login lua environment, however not in the addon environment
== Notes ==
* This function still exists inside the login Lua environment, however not in the addon environment.
* Removed in patch 1.10.0

Revision as of 21:53, 12 February 2021

WoW API < LaunchURL

Launches an external web browser and navigates to the URL provided.

LaunchURL("url")

Parameters

Arguments

  • URL (string) - URL of the website to open. Seems to only accept some URLs, works with base URL of the world of Warcraft websites, like wow-europe.com, worldofwarcraft.com, etc....

Returns

none

Example

LaunchURL("http://www.worldofwarcraft.com")
Result

Navigates a new web browser window to http://www.worldofwarcraft.com

Notes

  • This function still exists inside the login Lua environment, however not in the addon environment.
  • Removed in patch 1.10.0