OnClientBrowserNavigate: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (wordily explain the args)
Line 2: Line 2:
{{Client event}}
{{Client event}}
{{New feature/item|3.0150|1.5||
{{New feature/item|3.0150|1.5||
The event is executed when the browser loads a new page.
The event is executed when the browser loads a new page.
}}
}}


==Parameters==  
==Parameters==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
string targetURL, bool isblocked
string targetURL, bool isBlocked
</syntaxhighlight>
</syntaxhighlight>
*'''targetURL:'''
*'''targetURL:''' The page the browser loaded
*'''isblocked:'''
*'''isBlocked:''' If the browser was created with '''isLocal'' set to '''true''', and the browser tried to load a remote page, this would be set to '''true'' (and vice-versa)


==Source==
==Source==
Line 16: Line 16:


==Example==  
==Example==  
<syntaxhighlight lang="lua">todo</syntaxhighlight>
{{Example}}


==See Also==
==See Also==
{{CEF_events}}
{{CEF_events}}

Revision as of 14:15, 5 March 2016

The event is executed when the browser loads a new page.

Parameters

string targetURL, bool isBlocked
  • targetURL: The page the browser loaded
  • isBlocked: If the browser was created with isLocal set to true, and the browser tried to load a remote page, this would be set to true (and vice-versa)

Source

The browser element

Example

Accessories-text-editor.png Script Example Missing Event OnClientBrowserNavigate needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.
-- TODO


See Also