SetWebURL

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
SetWebURL

Type: Function
Context: Client
Introduced: v1.0

Description

Set the web URL. Not all URLs are whitelisted and might not work.

Syntax

SetWebURL(web, URL)

Parameters

  • web
    The web identifier
  • URL
    The URL

Return Value

  • Returns true on success.

Example

-- For remote WebUIs:
SetWebURL(webId, "https://google.com")

-- For normal local WebUIs:
SetWebURL(webId, "http://asset/mypackage/something.html")

-- Since Onset 1.2.2 you can load pages from the game server. The files must be inside the public_html folder.
SetWebURL(webId, "http://server/test/something.html")

See also