Sweet Alert automatically centers itself on the page and looks great no matter if you're using a desktop computer, mobile or tablet. It's even highly customizeable, as you can see below.Show error message Show success message
With a function attached to the confirm.Show warning message
By passing a parameter, you can execute something else for "Cancel".Cancel warning message
Dialogs display a text and require user to acknowledge the message.
To confirm or deny something.
To prompt dialog from the user.
You're not limited to the "Ok" and "Cancel" button labels. You can easily set your own labels.