Question and answer is powered by AnsPress.io
I have created a web page and I am using swal confirmation popup to display some message to user. But I want to use timer in my swal confirmation. How can I use timer in swal alert.
If you want to set TIMER in swal confiramtion then follow this code.
<script> swal({ title: "Error!", text: "Something go wrong. Please try it again.", type: "error", timer: 2000, showConfirmButton: false }); </script>