Title: Alert box bug
Last modified: August 31, 2016

---

# Alert box bug

 *  Resolved [eiboon](https://wordpress.org/support/users/eiboon/)
 * (@eiboon)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/alert-box-bug/)
 * I really love the alert box option, but there is a problem with it.
 * When I refresh, the alert will still appear. This is not a good idea for obvious
   reasons, the alert should only appear when a visitor tries to close the tab or
   window.
 * Also, it appears when I click my logo (homepage). I think you should update it
   to only appear when someone tries to close the tab or window and not page refresh
   as it can be very frustrating for user.
 * Thank you
 * [https://wordpress.org/plugins/yeloni-free-exit-popup/](https://wordpress.org/plugins/yeloni-free-exit-popup/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [eiboon](https://wordpress.org/support/users/eiboon/)
 * (@eiboon)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/alert-box-bug/#post-7429139)
 * **Alert should only appear when try to close tab or window.**
 *  Plugin Author [kranthitech](https://wordpress.org/support/users/kranthitech/)
 * (@kranthitech)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/alert-box-bug/#post-7429232)
 * Hi Eiboon,
 * I understand your concern. But there are technical limitations because of which
   we can only check if the current page is being unloaded.
 * The browser security does not allow us to distinguish between page refresh, or
   clicking on some link, or clicking the close button.
 * I’m glad that you like this feature, but it comes with a trade-off for the user
   experience.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Alert box bug’ is closed to new replies.

 * ![](https://ps.w.org/yeloni-free-exit-popup/assets/icon-256x256.jpg?rev=1537798)
 * [Yeloni Exit Popup | (Free) GDPR Compliance](https://wordpress.org/plugins/yeloni-free-exit-popup/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yeloni-free-exit-popup/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yeloni-free-exit-popup/)
 * [Active Topics](https://wordpress.org/support/plugin/yeloni-free-exit-popup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yeloni-free-exit-popup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yeloni-free-exit-popup/reviews/)

## Tags

 * [alert](https://wordpress.org/support/topic-tag/alert/)
 * [box](https://wordpress.org/support/topic-tag/box/)
 * [close](https://wordpress.org/support/topic-tag/close/)
 * [code](https://wordpress.org/support/topic-tag/code/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [popup](https://wordpress.org/support/topic-tag/popup/)
 * [window](https://wordpress.org/support/topic-tag/window/)
 * [Yeloni](https://wordpress.org/support/topic-tag/yeloni/)

 * 2 replies
 * 2 participants
 * Last reply from: [kranthitech](https://wordpress.org/support/users/kranthitech/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/alert-box-bug/#post-7429232)
 * Status: resolved