# PreventClosingOptions

**Kind**: interface | **Module**: [Windows](https://docs.interop.io/desktop/reference/javascript/windows/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/windows/preventclosingoptions/index.html

Options for the `prevent()` function passed as an argument to the `onClosing()` method when an io.Connect Window is about to be closed.

## Properties

- **`showDialog`** (`boolean`, optional)
  If `true`, a confirmation dialog will be shown before closing the window.
