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.
var x = confirm('Click OK to leave the site);
Didn't work though. Just curious if anyone has run into a requirement like this and figured out a solution.
This question is closed to new answers.