BBjSysGui::injectScript
Description
In BBj 21.10 and higher, this method injects the specified JavaScript into the web page (see Remarks), making it available for subsequent use by BBjSysGui::executeScript.
Syntax
| Return Value | Method | 
|---|---|
| void | injectScript(string script) | 
| void | injectScript(string script, boolean top) | 
Parameters
| Variable | Description | 
|---|---|
| script | JavaScript to be injected into this web page. | 
| top | A boolean value specifying whether this script is to be injected into the top level window of the page. | 
Return Value
None.
Remarks
In BBj 22.02 and higher, a subset of this functionality is available in the GUI client. Because the client isn't a web page, user-facing components, including Window, Document, and functions like alert, aren't available.

 Example 1
Example 1
                                            |  | 
Example 2 (All Clients)
|  | 
 Version History
Version History
                                            
                                            
                                            See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.