I've implemented a JavaScript function that triggers a pop-up alert whenever a user attempts to navigate away from the site by clicking on an external link:
$("a[target='_blank']").click( function() {
return confirm('Please don't leave...');
});
Is there a way to use a CSS script on specific pages to disable this global function on a page-by-page or div-class basis?