The Page Close Detector plugin enables your app to detect when a user is about to close the current browser tab or switch to another page. It triggers specific workflows before the page unloads, allowing you to save data, show confirmation popups, or perform essential updates before the user leaves.
Usage Features: - Detects when a user is about to close or navigate away from the page.
- Supports two events: "Before Page Unloads" and "Page Unload Started."
- Optionally displays a confirmation popup to prevent accidental exits.
- Triggers workflows to perform tasks such as saving data before the page closes.

Feedback
FAQ-
What events does this plugin support? The plugin supports two main events: "Before Page Unloads" and "Page Unload Started." These events can trigger workflows to perform specific actions before the user leaves the page.
-
Can I prevent a user from closing the page? Yes, you can set a confirmation popup to appear when a user attempts to close the page. This popup asks the user if they are sure about leaving, reducing accidental exits.
-
Can I save data before the page closes? Yes, you can trigger workflows to save data to your database before the page unloads. Use the "Before Page Unloads" event for this purpose.
-
Is it possible to customize the confirmation popup message? The confirmation popup message is controlled by the browser, and customization options are limited due to security reasons.
-
How can I use the events in a workflow? Add the "Close Page Detection" element to your page and configure workflows using the available events, such as saving data or logging user activity before the page unloads.

Other plugins from Zeroqode-
On Screen Detector Plugin for Bubble-
CleanTalk Spam Detector Plugin for Bubble-
Idle Detector #inactivitytrackuser Plugin for Bubble
SupportIf you still have questions or an unresolved issues, you can
contact us.
Risk-free TrialThe most risk-free way to try out this plugin is to subscribe to it. If you unsubscribe a few days later you will be charged on pro-rata basis, so for example if the plugin monthly price is $5 then you’d pay only 17¢ per day ($5/30 days)!