executeJavaScript
Executes JavaScript code in the context of the active tab page
Syntax
executeJavaScript = function(aCode, aFrameName);
Parameters
- aCode
- functions: JavaScript code
- aFrameName
- functions: name of the frame in the context of which the code will be executed
Notes
- If aFrameName = '', then code is executed in the context of the page
Examples
executeJavaScript('document.write("Hello from WAScript");');