http://stackoverflow.com/questions/2537463/asp-net-mvc-how-to-make-users-confirm-the-delete
Simply add the following to the head of your page:
<script type="text/javascript">
$(document).ready(function(){
$("input[name='deleteall']").click(function() {
return confirm('Delete all selected elements?');
});
});
</script>