Here\'s the situation:
This is a bank website, so when a user clicks an external link (perhaps to a Facebook page or a partner website), there needs to be a
Here's one way you could do it (See JSFiddle):
$("a").on("click", function() {
if($(this).attr("href").indexOf("http://") == 0) {
return confirm("Super long message");
}
});
http:// and not https://, it also doesn't check whether the absolute link points to your current domain, but it gives you and idea of how to approach it.