OnClientBrowserNavigate: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 18: Line 18:


==Example==  
==Example==  
<syntaxhighlight lang="lua">
TODO
TODO
</syntaxhighlight>


== Issues ==
== Issues ==

Revision as of 22:23, 2 April 2018

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.

The event is executed when the browser loads a new page. Do not use loadBrowserURL in the attached function.

Parameters

string targetURL, bool isBlocked, bool isMainFrame
  • 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).
  • isMainFrame: a boolean representing whether the entire page (main frame) was loaded or an <iframe> inside the page was loaded.

Source

The browser element.

Example

TODO

Issues

Issue ID Description
#9173 onClientBrowserNavigate is triggered for <iframe> elements

See Also