# How to open a custom popup when tab/window close

**URL:** <https://forum.bubble.io/t/how-to-open-a-custom-popup-when-tab-window-close/185418>\
**Category:** Questions\
**Created:** [January 8, 2022, 1:07am UTC](https://forum.bubble.io/t/how-to-open-a-custom-popup-when-tab-window-close/185418 "2022-01-08T01:07:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Famous](https://avatars.discourse-cdn.com/v4/letter/f/bc79bd/32.png) [@Famous](https://forum.bubble.io/u/Famous)\
**Post date:** [January 8, 2022, 1:07am UTC](https://forum.bubble.io/t/how-to-open-a-custom-popup-when-tab-window-close/185418/1 "2022-01-08T01:07:39Z")

</div>

Is it possible to show a custom popup element not alert window when a user is about closing a window or the browser or clicking on a link element.

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [January 8, 2022, 1:11am UTC](https://forum.bubble.io/t/how-to-open-a-custom-popup-when-tab-window-close/185418/2 "2022-01-08T01:11:38Z")

</div>

Hi there, @Famous… I have never used it, but you might want to check out this plugin.

> [@door \[FREE PLUGIN\] Page Close Event](http://forum.bubble.io/t/free-plugin-page-close-event/152585):
>
> Plugin triggers an event when user is about to close the page🚪 This can be used to show a popup with a promo code etc. It works on desktop and mobile fire Features: Very easy configuration Work on mobile and deskop Event sensitivity configurationlink [Demo](https://de-demo2.bubbleapps.io/version-test/quit-event) | [Editor](https://bubble.io/page?type=page&name=quit-event&id=de-demo2&tab=tabs-1)link Plugin Page: books Full Description, Documentation & Screenshots:

Best…  
Mike
