ExecuteJavaScript

Executes JavaScript code in the context of the active tab page

Syntax

procedure ExecuteJavaScript(aCode: string; aFrameName: string = '');

Parameters

  • aCode
    • type: string
    • functions: JavaScript code
  • aFrameName
    • type: string
    • 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

  1. ExecuteJavaScript('document.write("Hello from WAScript");');