if (result.isConfirmed) { Swal.fire( 'Deleted!', 'Your file has been deleted.', 'success' ) } code example
Example 1: swal
swal("Good job!", "You clicked the button!", "success");
Example 2: sweetalert2 example html
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>