MARKETPLACE
PLUGINS
PAGE CLOSE DETECTOR
Page Close Detector logo

Page Close Detector

Published August 2019
   •    Updated this week

Plugin details

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




Support

If you still have questions or an unresolved issues, you can contact us.


Risk-free Trial

The 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)!

$40

One time  •  Or  $4/mo

4.3 stars   •   3 ratings
285 installs  
This plugin does not collect or track your personal data.

Contributor details

 logo
Joined 2016   •   817 Plugins
View contributor profile

Instructions

There are 2 Events supported on this Plugin: 1)  Before Page Unloads
2)  Page Unload Started

The "Before Page Unloads" Event gets triggered when when a window is about to unload its resources.

The "Page Unload Started" gets triggered when a window is in the process of unloading its resources.

Types

This plugin can be found under the following types:
Background Services   •   Element   •   Event

Categories

This plugin can be found under the following categories:
Technical   •   Web Scraping   •   Productivity   •   Data (things)   •   Containers   •   Visual Elements

Resources

Support contact
Documentation
Tutorial

Rating and reviews

Average rating (4.3)
Useful Plugin
October 7th, 2024
Detecting when users close or leave a page is a breeze with this plugin
Hello, Anton from the Zeroqode Support Team here. We greatly appreciate your positive feedback and are glad to know that our plugin has met your expectations. Your satisfaction is our greatest reward. If there’s anything more we can do for you, don’t hesitate to get in touch through our forum (https://forum.zeroqode.com/) or directly at support@zeroqode.com. Thank you once again for choosing Zeroqode. Best regards, Anton
October 9th, 2024
  •  
Perfect
December 2nd, 2023
Works perfectly. Unload started event was the missing piece for my app's undo UX. Thanks!
"Page Unload Started" WF doesn't work, but the rest is find
May 17th, 2023
If I don't know how to use it but it's working just tell me I will change the review
Bubble