Action: JavaScript Execution (Js)

Runs custom JavaScript code on the page

📖 Description

The Js action executes JavaScript code on the current page. The result will be stored in the page store under the specified resultName. Both inline code (inline) and external files (file) are supported.

🧩 Structure
Field Type Required Description

resultName

string The name under which the result will be stored in the page store.

script

JsCodeSpec JavaScript code to execute. Can be provided inline or as a path to an external file.
📋 Example
{
  "name": "Evaluate JS",
  "action": "Js",
  "resultName": "documentTitle",
  "script": {
    "inline": "return document.title;"
  }
}
📄 Site updated: 17.06.2025 00:01
An unhandled error has occurred. Reload 🗙