Home › Forums › Support › Exit to external link js popup This topic has 1 reply, 2 voices, and was last updated 7 years, 12 months ago by Tom. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts April 30, 2016 at 1:21 am #190526 Dion I have this js thingy… $("a").on("click", function() { if($(this).attr("href").indexOf("http://") == 0) { return confirm("Super long message"); } }); How, where do i put it to work? April 30, 2016 at 9:55 am #190619 TomLead 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> Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In