> ## Documentation Index
> Fetch the complete documentation index at: https://learn.workflow.dog/llms.txt
> Use this file to discover all available pages before exploring further.

# Close Window

> Return a small HTML response that asks the browser window to close.

**Close Window** responds with an HTML script that calls `window.close()` after
the page loads. It is available with **URL** and **Form Submission** triggers.

## Input

| Input      | Type   | Required | Description                                                 |
| ---------- | ------ | -------- | ----------------------------------------------------------- |
| **Status** | Number | No       | An HTTP status code from `100` to `599`. Defaults to `200`. |

This is useful at the end of popup-based authorization or handoff flows.

<Note>
  Browsers commonly allow scripts to close only windows that were opened by
  script. A normal tab opened directly by the user may remain open.
</Note>
