I want two exit popups. Specifically I want exit pop up "A" to come up if the user clicks on a link and if he does not click on THAT link exit pop up "B" should pop up.

Is there a way to do that? I would appreciate if anyone can show me how to do it? (preferably with an example) I already have code for pop up but can't figure out how to do this specific activity.

Thanks in advance,