Posted By

mountainash on 02/27/15


Tagged

script LeadPages ExitBox


Versions (?)

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


 / Published in: jQuery
 

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.

  1. function dieExitBox() {
  2. if (typeof safetyCheck !== 'undefined') {
  3. if (safetyCheck) {
  4. safetyCheck = false;
  5. window.clearInterval(intervalID3);
  6. }
  7. }
  8. }
  9.  
  10. var intervalID3 = window.setInterval(dieExitBox, 100);

Report this snippet  

You need to login to post a comment.