Archived topic
Exit to external link js popup
1 reply · Started by Anonymous on April 30, 2016
Viewing posts 1–2 of 2
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?
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>
This archived topic is closed to new replies.
