I wanted to present a popup before leaving a website which has the AddThis toolbar. For example, clicking Facebook or Twitter causes a Jquery Dialog to popup saying 'You are about to leave our site where our policies do not apply. Please click OK to leave.', and if they answer OK there, then to redirect to Facebook,etc.
I was hoping I could just add an event via Jquery. Just a simple javascript confirm example to get working now (ultimately I'd like to do a Jquery Dialog)...
$('#addthis_toolbar a').click(function(evt){
var x = confirm('Click OK to leave the site);
return x;
});
Didn't work though. Just curious if anyone has run into a requirement like this and figured out a solution.