Streaming live at 10am (PST)

The popup when exiting a site help


#1

How to add custom code to show the popup when exiting a site?Thanks


#2
$(document).on('click', 'a', function() {
  if(this.href.indexOf('http') == 0 && this.href.indexOf(location.hostname) == -1) {
    return confirm('Are you sure you want to leave this site?');
  }
});

#3

Thanks @samliew

I want to create popup with form that can collect email, Like this one www.ogadget.com/x/jelly, when try to exit page, it show,

Can you show me an simple demo?

Thank you very much:laughing:


#4

For specific/advanced custom coding services, you may contact me here http://webflowexpert.com