sweetalert alert block click code example
Example 1: how to stop user from clicking outside sweetalert 2
allowOutsideClick: false
Example 2: sweet alert
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
allowOutsideClick: false
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>