# Can I control how and when the Popup closes?

Original URL: https://www.fireplugins.com/docs/troubleshoot/can-i-control-how-and-when-the-popup-closes/
Last updated: 2025-07-25T12:52:51+03:00

A popup can be closed in different ways:

 - Display a Close button either inside or outside the popup for your users to click and close the popup
- Close the popup by clicking on the background overlay
- Automatically close the popup after a specific amount of time by utilizing [Actions](https://www.fireplugins.com/docs/advanced-features/actions/).
- Use [Javascript](https://www.fireplugins.com/docs/firebox/extending/firebox-javascript-api/) to close the popup.
