OnWebLoadComplete: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Event|Client|1.0}} {{FuncDescription|Called when a web browser created by CreateWebUI is ready to use.}} {{FuncSyntax|OnWebLoadComplete(webid)}} {{FuncParameters..."
 
Chloe (talk | contribs)
Added an example and web events tag.
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
{{FuncDescription|Called when a web browser created by [[CreateWebUI]] is ready to use.}}
{{FuncDescription|Called when a web browser created by [[CreateWebUI]] is ready to use.}}


{{FuncSyntax|OnWebLoadComplete(webid)}}
{{FuncSyntax|OnWebLoadComplete(web)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|webid|The identifier of the web browser.}}
{{FuncParam|web|The identifier of the web browser.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
AddEvent("OnWebLoadComplete", function(web)
-- Hide the web until further usage!
SetWebVisibility(web, WEB_HIDDEN)
end)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{ClientEvents}}
{{WebEvents}}

Latest revision as of 22:44, 15 January 2020

OnWebLoadComplete

Type: Event
Context: Client
Introduced: v1.0

Description

Called when a web browser created by CreateWebUI is ready to use.

Syntax

OnWebLoadComplete(web)

Parameters

  • web
    The identifier of the web browser.

Example

AddEvent("OnWebLoadComplete", function(web)
	-- Hide the web until further usage!
	SetWebVisibility(web, WEB_HIDDEN)
end)

See also