runJsFunction

From RPTools Wiki
Revision as of 07:19, 3 May 2021 by Melek (talk | contribs) (Created page with "{{stub}} {{Experimental}} {{MacroFunction |name=runJSfunction |description= Runs a JavaScript function which is defined in a frame5, dialog5, or overlay. |usage= <source lang...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.

 This article describes a feature or macro function that is experimental and may be subject to change.

runJSfunction() Function

Runs a JavaScript function which is defined in a frame5, dialog5, or overlay.

Usage

runJSfunction(name, type, func, thisArg, argsArray)

Parameter

  • name - Name of an active frame, dialog, or overlay.
  • type - Either "frame", "dialog", or "overlay".
  • thisArg - Value of "this" provided to the function.
  • argsArray - JSON array specifying the arguments with which the JavaScript function should be called.