Kill/Remove/Hide a LeadPages ExitBox on a single page

/ Published in: jQuery
Save to your folder(s)

Useful when using a template or Wordpress and the LeadPages code is called on every page and there is a single page you don't want the fancy exit marketing signup form to appear.

The LeadBox external code has a boolean variable called 'safetyCheck' which is checked before displaying a pop-over. So long as it's FALSE it won't show.

Copy this code and paste it in your HTML
  1. function dieExitBox() {
  2. if (typeof safetyCheck !== 'undefined') {
  3. if (safetyCheck) {
  4. safetyCheck = false;
  5. window.clearInterval(intervalID3);
  6. }
  7. }
  8. }
  10. var intervalID3 = window.setInterval(dieExitBox, 100);

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.