Browser::execute: Difference between revisions
(Created page with "This function used for call JavaScript code in created browser. ==Syntax== <syntaxhighlight lang="typescript"> void browser.execute(string executedCode); </syntaxhighlight>...") |
MrPancakers2 (talk | contribs) m (Removed typing example, updated page.) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{ClientsideJsFunction}} | |||
Calls JavaScript code inside the browser. | |||
{{JSContainer| | |||
==Syntax== | ==Syntax== | ||
< | <pre> | ||
browser.execute(executedCode); | |||
</ | </pre> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''executedCode:''' JavaScript code | *'''executedCode:''' JavaScript code to be executed in browser. | ||
==Example== | ==Example== | ||
Create a popup alert in the browser | |||
< | {{ClientsideCode| | ||
<pre> | |||
browser.execute(`alert(\`It's a test.\`);`); | browser.execute(`alert(\`It's a test.\`);`); | ||
</ | </pre> | ||
}} | |||
}} | |||
==See Also== | ==See Also== | ||
{{ | {{Browser_definition_c}} | ||
[[Category:Clientside API]] | |||
Latest revision as of 22:33, 20 April 2020
Client-Side Function
Calls JavaScript code inside the browser.
JavaScript Syntax
Syntax
browser.execute(executedCode);
Required Arguments
- executedCode: JavaScript code to be executed in browser.
Example
Create a popup alert in the browser
Client-Side
browser.execute(`alert(\`It's a test.\`);`);
See Also
- Functions:
- Properies: