← Back to Page domain

Page.close

Tries to close page, running its beforeunload hooks, if any.

Domain: Page stable

Example Request

{
  "id": 1,
  "method": "Page.close"
}

Example Response

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

Usage in Node.js

const result = await send('Page.close');
console.log(result);