← Back to Emulation domain

Emulation.setScriptExecutionDisabled

Switches script execution in the page.

Domain: Emulation stable

Parameters

NameTypeDescription
valuebooleanWhether script execution should be disabled in the page.

Example Request

{
  "id": 1,
  "method": "Emulation.setScriptExecutionDisabled",
  "params": {
    "value": "example-value"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Emulation.setScriptExecutionDisabled', {"value": "example-value"});
console.log(result);