---
title: "CloseRequestedEvent"
---
Defined in: api/node/typescript/generated/window-event.ts:164

The user requested to close the window.

Dispatching this event invokes the `close-requested` callback of the window element,
and hides the window unless that callback returns `reject`.

## See

[Window.dispatchEvent](/master/docs/node/api/interfaces/window/#dispatchevent)

## Properties

### type

> **type**: `"close-requested"`

Defined in: api/node/typescript/generated/window-event.ts:165