Dette innstikket er ikkje testa med dei tre siste utgåvene av WordPress. Det kan henda det ikkje blir vedlikehalde lenger, og kan ha problem med nyare versjonar av WordPress.

Exit Notifier


Some industries» compliance recommendations suggest that a notice be presented anytime someone leaves your site. I searched for a plugin to do this, and came up empty, so here you go!

* Works with little or no configuration.
* The title and the body of the exit box, and the text on the buttons are all editable, and honor shortcodes.
* There are also options for providing a visual indication on your selected links, and for opening selected links in a new window/tab.
* You can completely customize the display of the dialog by modifying the CSS.
* You can set a timeout that will continue or cancel when the time expires, with optional visual feedback.
* Add CSS classes to selected links.
* Add Custom CSS that applies to the whole site.
* You can add custom tags in the anchor tag for each link to provide custom title and body for each link.
* Compatible with simple forms in some cases. Should work well with WooCommerce External/Affiliate product pages.
* Will honor <a target=»whatever»> for selectively opening in a new tab/window.
* Allows you to add rel=»nofollow» to all outbound links.
* You can now exclude individual links by applying a CSS class.
* Accessibility issues addressed with library updates.


When upgrading, please be sure to clear the cache if you’re using a caching plugin like the excellent WP Fastest Cache ( or something similar. There have been substantial changes and having older versions of the files cached will almost certainly lead to problems when an external link is clicked.

Credit where credit is due

I have made liberal use of the excellent WordPress Plugin Template by Hugh Lashbrooke found at Thanks, Hugh!

Also, to HTMLGuy, the maker of jAlert, a very versatile and simple alert component! Thanks!


  • A sample notice in action.
  • Default exit box closeup.
  • Content settings page.
  • Alternate Content settings page.
  • Behavior settings page.
  • Display settings page.
  • Timeout settings page.
  • Custom CSS settings page.


Installing «Exit Notifier» can be done either by searching for «Exit Notifier» via the «Plugins > Add New» screen in your WordPress dashboard, or by using the following steps:

  1. Download the plugin via
  2. Upload the ZIP file through the «Plugins > Add New > Upload» screen in your WordPress dashboard
  3. Aktiver innstikket gjennom Innstikk-menyen i WordPress

Vanlege spm.

What is the plugin for?

This plugin is designed to provide a mechanism for notifying users of your site that they are leaving for another server. It can also be used to pop an alert for pretty much any <a> tag target (and now some forms!) with some jQuery selector magic. Some industries recommend notifying users if they are leaving your site.

Can I edit the text in the box?

Yes. The plugin provides generic defaults, but the settings page allows you to edit the title and body of the exit box. You can now also edit the text of the buttons, and determine the box behavior and look and feel.
You can also add exit-notifier-title=»Your title here» and/or exit-notifier-body=»Custom Exit Notifier Body text» to any link to customize the message for that particular link.

How do I «whitelist» links so the notifier does not appear even though they are offsite?

You can bypass exit notifier for some links by following the guidelines here:


15. mars 2022 3 replies
It is with much disappointment that I have to rate only two stars. I installed the plugin. It seemed to work fine. It was for a test. I then deleted it and…surprise, all my posts were gone. With astonishment. Fortunately, I have backups… So test on a test website before installing permanently. But, anyway, I believe the author has abandoned the plugin. It’s really a pity.
10. august 2021
Hey Thanks for this great plugin. I am having an issue, The exit message is displaying on Desktop, but can not see it on Mobile and other devices. Please guide me to fix this issue. Regards
23. juni 2021
I just inalled this. I needed to customize it so that it worked with only one URL. The settings to do that worked very well with the jquery. I was particularly pleased because I did not understand how flexible it could be from the description which stressed the negative default. It did mention that there could be exceptions to adjust it, but did note that you could change the default and only add one case (or I assume a few cases) to use it with query. The description does not do full justice to how well this works, in my opinion.
28. mai 2021
I’m new to HTML/CSS and needed to enable the «Alternate Content» to work on specific redirects of a site I’m working on. Curtis helped me understand how to modify my settings so it would work. Now, everything is the way I need it to look. Thank you! Highly recommend this plugin both for its functionality and the support.
24. mai 2021
With 5-7 subsites and privacy policies that only apply to each, this was a perfect complement to finish off our global multisite features and functionality.
23. april 2021
On first didnt get the plugin, maybe better explenation on how to use it. But when you take some time, you see everything you need to create exit notices is here and a LOT more options. Like custom targeting, automatic exit notice on all links, also whitelist for the links you dont need exit notice, and also, ALTERNATE notice, you can put with just adding class to links. So i think everything is covered. And did i mentioned someone created this for free? What more do you want. Well i busted my head on one situation, sent email to support, got answer quick, and right to the middle of the problem. PROBLEM solved. Cheers man! Without bear, just beer!
Les alle 29 omtalar

Bidragsytarar og utviklarar

“Exit Notifier” is open source software. The following people have contributed to this plugin.




  • Added target parameter to exit_notifier_js() function call.


  • Confirm compatibility with WordPress 5.7
  • Add JavaScript callable function exit_notifier_js(). Thanks Brian!


  • Fix IE11 BUG with sweetalert addition. Fix provided by @dwarho in the support threads. Thanks @dwarho!


  • Fix Custom Theme BUG — Thanks Erik!
  • Add SweetAlert2 as an option for notification


  • 2020-09-14
  • Updated jAlert for accessibility


  • 2020-09-09 (unreleased)


  • 2020-08-25
  • Added exclusion class to anchor behavior page.
  • Added rel=»nofollow» option as requested by Chuck W.
  • Added debugtoconsole parameter to print the jQuery selector to the console if checked.


  • 2020-02-19
  • BUGFIX: Long overdue fix for Alternate Content not including the URL in the Go button text. First reported by @rdesk.


  • 2020-02-19
  • Added shortcode handling to button text as requested by @wust.


  • 2020-02-07
  • ACTUAL BUGFIX: Fatal errors in some circumstances when detecting target. Thanks Austin!


  • 2020-02-07
  • BUGFIX: Fatal errors in some circumstances when detecting target. Thanks Austin!


  • 2020-02-01
  • Honors <a target=»_blank»>.
  • Timeout text is customizable for Continue and Cancel. Both modifications in this version suggested by @blubstar.


  • 2020-01-07
  • Cosmetic/typo issue


  • 2019-11-20
  • Compatibility check/update


  • 2019-01-15
  • BUGFIX: Error in applying jQuery selector appropriately. Thanks again to Paul A. for his quick testing!


  • 2019-01-15
  • Form handling is now off by default, due to some unforseen interactions on some sites. Thanks to Paul A. for finding the issue.


  • 2019-01-14
  • Add the ability to attach Exit Notifier to forms. Suggested by/with help from @jdrda, @kepu, and Annina W.


  • 2019-01-10
  • BUGFIX: Include the URL on the Go button checkbox fixed. Thanks again to @ccondray for alerting me to this one!


  • 2019-01-10
  • Added Advanced tab in settings and the option to not delete settings on uninstall.
  • Due to inspiration from @internetnoob, added a per-link option to customize the title and body for each link with custom attributes.


  • 2019-01-10
  • BUGFIX: Custom theme stopped working in 1.5. Thanks to @ccondray for helping find the bug!


  • 2018-12-17
  • Updated a few cosmetic issues and credits, including a warning about caching plugins when upgrading from 1.4 to 1.5 and later.
  • Added the option to blur the background.
  • Properly cleaning up settings when plugin is deleted.


  • 2018-12-14
  • Added an Alternate Exit Notifier option and more timeout options.


  • 2018-12-13
  • BUGFIX! Missing file. Sorry everyone!


  • 2018-12-13
  • Updated jAlert version
  • Fixed some WCAG issues brought to my attention by @mothershiparts
  • Added the ability to expand the target URL in the body or title by including {target} in the text. Thanks to @mdsteveb for the suggestion.
  • Added an option to display a progress bar for the timeout. Thanks to @mdsteveb for the suggestion.
  • Adjusted jAlert font size to use em instead of px. Thanks to @hmsproducts for the suggestion.


  • 2018-12-12
  • Added option to add CSS classes to selected links.
  • Added sensible hardcoded defaults in case of no selections preventing errors in some installations before specific configurations are chosen.


  • 2017-09-07
  • Internal changes for a specific use case.


  • 2017-06-15
  • Fixed minor error involving the Exit Box Theme sometimes not being selected leading to it failing to fire.


  • 2017-06-09
  • Minor metadata update


  • 2017-06-09
  • Added the timeout feature and settings tab.


  • 2017-04-03
  • Added exitNotifierLink class to all selected links so that you can style them to suit. Added the option to use no animation.


  • 2017-03-16
  • Added option to turn off URL in button text, and process shortcodes in the body text and popup title.


  • 2017-03-01
  • Added in an advanced CSS field that allows editing CSS that will affect the whole site and should take precedence over other CSS. WARNING: Do not use if you are not confident in your understanding of CSS!


  • 2017-02-23
  • Narrowed the scope of the Custom CSS setting to prevent sitewide CSS issues.


  • 2017-02-15
  • Added the ability to completely customize the look of the dialog by modifying the CSS.


  • 2017-02-11
  • Fixed CSS defining width for text fields affecting more than intended


  • 2015-12-17
  • Verified compatibility with WordPress 4.4. Updated Behavior tab in settings to clear up how the jQuery selector gets used.


  • 2015-09-25
  • Rearranged settings into tabs for readability and to reduce the need to scroll. Added backgroundColor option.


  • 2015-09-24
  • Visual controls added to the admin page


  • 2015-09-14
  • Minor terminology updates.


  • 2015-09-14
  • Added option to change the jQuery selector, allowing you to affect what links are notified.


  • 2015-09-13
  • Updated default body text to better match compliance suggestions.


  • 2015-08-16
  • Added options for visual indication of an external link and whether or not to open external links in a new window/tab.


  • 2015-08-15
  • Initial release