OnWebLoadComplete: Difference between revisions
From Onset Developer Wiki
No edit summary |
Added an example and web events tag. |
||
Line 9: | Line 9: | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua> | |||
AddEvent("OnWebLoadComplete", function(web) | |||
-- Hide the web until further usage! | |||
SetWebVisibility(web, WEB_HIDDEN) | |||
end) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{ | {{WebEvents}} |
Latest revision as of 22:44, 15 January 2020
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)