Browser::url

From RAGE Multiplayer Wiki
Revision as of 18:04, 4 January 2019 by Flow (talk | contribs) (getter added)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function: Set or get the url of a browser

Parameters

  • URL: String

Syntax

Client-Side
browser.url;

Example

Setter:

Client-Side
let browser = mp.browsers.new("package://index.html");
browser.url = "package://home.html";

Getter:

Client-Side
let url = browser.url;

See Package Protocol for more info on the package:// url.

See Also