ExecuteBrowserJavascript: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
m (fix oops)
Line 10: Line 10:
bool executeBrowserJavascript ( browser webBrowser, string jsCode )
bool executeBrowserJavascript ( browser webBrowser, string jsCode )
</syntaxhighlight>
</syntaxhighlight>
{{OOP||[[Element/Browser|browser]]:executeJavascript||executeBrowserJavascript}}
{{OOP||[[Element/Browser|browser]]:executeJavascript}}


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

Revision as of 20:21, 17 December 2015

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

Before submitting check out Editing Guidelines Script Examples.

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(...)


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