urlOut = this.href;
$("#exitMsg").dialog({ modal: true, width: 400, draggable: false, resizable: false, buttons: { Cancel: function() { $(this).dialog('close'); }, Continue: function() { window.location.href = urlOut;}, } });
return false;
}); });
This one triggers the standard jQuery UI dialog box that has lots of customizable options. In this case there is a cancel button and a continue on to the external site button.