<script>
jQuery(document).ready(function($) {
var myLink = $('.class-for-your-link-or-button');
myLink.on('click', function(event) {
if (!confirm('Are you sure you want to foo? This action cannot be undone.')) {
event.preventDefault();
}
});
});
</script>