← Back to Emulation domain

Emulation.setPageScaleFactor

Sets a specified page scale factor.

Domain: Emulation experimental

Parameters

NameTypeDescription
pageScaleFactornumberPage scale factor.

Example Request

{
  "id": 1,
  "method": "Emulation.setPageScaleFactor",
  "params": {
    "pageScaleFactor": 1.0
  }
}

Example Response

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

Usage in Node.js

const result = await send('Emulation.setPageScaleFactor', {"pageScaleFactor": 1.0});
console.log(result);