|
|
|
|
Functions
Events
Variables
Libraries
|
|
Syntax
| mio_execScript(browserID, javaScriptCode) |
Parameters
| STRING | browserID | String representing a variable containing the browser ID. For example, if the ID of the browser is stored in the MioScript variable &br, set this parameter to br.
| | CODE | javaScriptCode | JavaScript code. |
Return value
No value is returned.
Description
Executes a JavaScript code on another web browser object than the one running the current script.
This can be used to call a function or send data to another window for example.
Note: The web browser objects must be owned by the application, and must be created with browser.createEx.
This function is compatible with most of the application templates provided with MioFactory using more than one web browser object, such as a desktop alert. |
JavaScript Sample Code
// MioScript code to create the web browser objects
event.load
...
&br_A = browser.createEx(...)
&br_B = browser.createEx(...)
...
event.end
// To execute from browser A a javaScript code in browser B
mio_execScript("br_B", "alert('Hello')") |
|
|
|