then sweetalert code example
Example 1: how to use sweetalert
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
Example 2: sweetalert
swal("Error!", "You clicked the button!", "error");
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
swal("Error!", "You clicked the button!", "error");