BBjHtmlView::executeScript
Description
In BBj 16.00 and higher, this method executes the specified JavaScript in this BBjHtmlView control.
Syntax
Return Value | Method |
---|---|
Object | executeScript(String script) |
Object | executeScript(String script, boolean await) |
Parameters
Parameter | Description |
---|---|
script | JavaScript to be executed in this BBjHtmlView. |
await | In BBj 23.04 and higher, this optional boolean value specifies that the DWC client should execute this script using the JavaScript await operator. If not specified, the default is false (0). |
Return Value
In BBj 16.00, this method does not return a value.
In BBj 17.00 and higher, this method returns the execution result, converted from JavaScript to Java. If the return value is a JavaScript type that can't be represented as a Java type, a simple String representation is returned.
Example 1
|
Example 2
|
Version History
- BBj 23.04: Added an optional await argument.
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.