# CloseOptions

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

**Source**: https://docs.interop.io/browser/reference/javascript/windows/closeoptions/index.html

Options for closing an io.Connect Window.

*Since: io.Connect Browser 5.0*

## Properties

- **`allowPrevent`** (`boolean`, optional) default: `false`
  If `true`, will enable the window to prevent closing.
- **`showDialog`** (`boolean`, optional) default: `false`
  If `true`, a confirmation dialog will be shown before closing the window.
  The dialog will be displayed only if `allowPrevent` is `true` and a closing handler prevents closing.
  Requires modal windows to be configured in the Main app and dialogs to be enabled in the app displaying the confirmation.
  The dialog appears in the window being closed or, for a Workspace window, in its containing Workspaces App instance.
