The ExecuteJS function sends Java script code to the WebClient and executes it.
|
Syntax | |||||
|
ExecuteScript(ByVal Script As String [, ByVal RemoveScript as Boolean]) | |||||
|
Return value | |||||
|
Type |
Description | ||||
|
Long |
0 if it was carried out error-free | ||||
|
Parameter | |||||
|
Use |
Name |
Type |
Passing |
Description | |
|
Required |
Script |
String |
ByVal |
The script to be executed | |
|
Optional |
RemoveScript |
Boolean |
ByVal |
True If True, the script is removed after execution. | |
Example:
Dim Script As String := 'function doalert() {alert("Hello world");} doalert();'
Client.WebClient.ExecuteJS(Script)
The script displays the message Hello world in the web browser.