SweetAlert2 ADDONA beautiful,responsive customizable,accessible (wai-aria) replacement for javascript's popup boxes with no dependencies
About
SweetAlert2 is a JavaScript library that helps us create alerts in our web applications. SweetAlert2 is a replacement for default JavaScript pop up boxes. It needs zero dependencies, is customizable, well structured, accessible (wai-aria) and responsive. It needs promise.js for IE11 support. It is currently not supported in IE10
Find in-depth, guidelines, tutorials and more on sweetalert2's Official Documentation
SweetAlert2 Examples
SweetAlert2 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!
1A basic message | Try me! |
2A title with a text under | Try me! |
3A modal with a title,an error icon,a text,and a footer | Try me! |
4A modal window with a long content inside: | Try me! |
5Custom HTML description and buttons with ARIA labels | Try me! |
6A custom positioned dialog | Try me! |
7A confirm dialog,with a function attached to the "Confirm"-button... | Try me! |
8... and by passing a parameter,you can execute something else for "Cancel". | Try me! |
9A message with a custom image and CSS animation disabled | Try me! |
10A message with custom width,padding,background and animated Nyan Cat | Try me! |
11A message with auto close timer | Try me! |
12Right-to-left support for Arabic,Hebrew,and other RTL languages | Try me! |
13AJAX request example | Try me! |
14Chaining modals (queue) example | Try me! |
15Dynamic queue example | Try me! |
16Timer functions example | Try me! |