sweet alert when click on close alert code example Example: sweetalert close on custom button click swal.close()