Reply To: Exit to external link js popup

Home Forums Support Exit to external link js popup Reply To: Exit to external link js popup

#190619
Tom
Lead Developer
Lead Developer

If you have GP Hooks you can place it in the wp_footer hook.

However, it would have to look like this:

<script>
jQuery("a").on("click", function() {
    if(jQuery(this).attr("href").indexOf("http://") == 0) {
        return confirm("Super long message");
    }
});
</script>