Website Exit Popup

Website Exit Popup

Hi! I have a jQuery script running on a clients WordPress site where if you click on a link that takes you away from their url it will popup a warning. Website:  https://www.membersowncu.org. Go to this URL ( https://www.membersowncu.org/loans/auto-loans/) and click on "apply online" in the third paragraph. Works great! However, I need to add a few urls as an exception. So, when they click on those other urls it won't trigger the popup. Here is my code:

<script>
jQuery(function() {
function leave_now(event) {
    var choice = window.confirm( 'You are now leaving the MembersOwn site.' );
    return choice;
}

var select_external = 'a[href*="//"]:not([href*="membersowncu.org"])';
jQuery(document).on( 'click', select_external, leave_now )
});

</script>

Can anyone help out with this? Thank you!

Kevin Brown