ExecuteBrowserJavascript: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client_function}}
{{Client_function}}
{{New feature/item|3.0150|1.5||
This function executes a Javascript string to the specified [[Element/Browser|browser]].
This function executes a Javascript string to the specified [[Element/Browser|browser]].
}}


==Syntax==
==Syntax==
Line 7: Line 9:
bool executeBrowserJavascript ( browser webBrowser, string jsCode )
bool executeBrowserJavascript ( browser webBrowser, string jsCode )
</syntaxhighlight>
</syntaxhighlight>
{{OOP||[[Element/Browser|browser]]:executeJavascript||executeBrowserJavascript}}


===Required Arguments===
===Required Arguments===

Revision as of 19:10, 7 February 2015

This function executes a Javascript string to the specified browser.

Syntax

bool executeBrowserJavascript ( browser webBrowser, string jsCode )

OOP Syntax Help! I don't understand this!

Method: browser:executeJavascript(...)
Counterpart: executeBrowserJavascript


Required Arguments

  • webBrowser: The web browser which will execute the Javascript code
  • jsCode: The Javascript code string

Returns

Returns true if executing Javascript is allowed in the current context, false otherwise.

Example

--todo

See Also