Leaving site JS Lightbox Alert- exclude specific URLS as a condition

$("a[href]:not([href*='"+window.location.host+"']):not([href^='/']):not([href*='volleyball'])").on("click",l)}

 

If the URL contains "volleyball' in it, the leaving site lightbox warning does not come up and the user is redirected to the site.

Blog Type: