If you click Members or Shop in the main navigation you will be asked if you are sure you want to leave the site.
I put this in via functions.php using the jquery below,
<script>
jQuery(function() {
function leave_now(event) {
var choice = window.confirm( 'You are now leaving Tumble Tots, do you wish to continue?' );
return choice;
}
var select_external = 'a[href*="//"]:not([href*="allanlove.net"])';
jQuery(document).on( 'click', select_external, leave_now )
});
</script>
Where it says “You are now leaving Tumble Tots, do you wish to continue?” I need it to say “You are now leaving Tumble Tots to go to (Link of page eg http://tumbletotsmemberoffers.com/) do you wish to continue?”
But I am unsure how to get the href link in the jquery?
I look forward to you response,
Regards