sweetalert

<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>swal("My title", "My description", "success");</script>

3.83
6
Kundor 80 points

                                    Swal.fire({  title: '&lt;strong&gt;HTML &lt;u&gt;example&lt;/u&gt;&lt;/strong&gt;',  icon: 'info',  html:    'You can use &lt;b&gt;bold text&lt;/b&gt;, ' +    '&lt;a href=&quot;//sweetalert2.github.io&quot;&gt;links&lt;/a&gt; ' +    'and other HTML tags',  showCloseButton: true,  showCancelButton: true,  focusConfirm: false,  confirmButtonText:    '&lt;i class=&quot;fa fa-thumbs-up&quot;&gt;&lt;/i&gt; Great!',  confirmButtonAriaLabel: 'Thumbs up, great!',  cancelButtonText:    '&lt;i class=&quot;fa fa-thumbs-down&quot;&gt;&lt;/i&gt;',  cancelButtonAriaLabel: 'Thumbs down'})

3.83 (6 Votes)
0
3.6
5

                                    &lt;script src=&quot;//cdn.jsdelivr.net/npm/sweetalert2@10&quot;&gt;&lt;/script&gt;

3.6 (5 Votes)
0
4.29
7

                                    &lt;script src=&quot;//cdn.jsdelivr.net/npm/sweetalert2@11&quot;&gt;&lt;/script&gt;

4.29 (7 Votes)
0
4
8

                                    swal(&quot;Good&nbsp;job!&quot;,&nbsp;&quot;You&nbsp;clicked&nbsp;the&nbsp;button!&quot;,&nbsp;&quot;error&quot;);

4 (8 Votes)
0
0
0
Srihari 100 points

                                    &lt;script src=&quot;//cdn.jsdelivr.net/npm/sweetalert2@10&quot;&gt;&lt;/script&gt;

0
0
4.2
10
Peter Bike 95 points

                                    swal({&nbsp;&nbsp;title:&nbsp;&quot;Are&nbsp;you&nbsp;sure?&quot;,&nbsp;&nbsp;text:&nbsp;&quot;Once&nbsp;deleted,&nbsp;you&nbsp;will&nbsp;not&nbsp;be&nbsp;able&nbsp;to&nbsp;recover&nbsp;this&nbsp;imaginary&nbsp;file!&quot;,&nbsp;&nbsp;icon:&nbsp;&quot;warning&quot;,&nbsp;&nbsp;buttons:&nbsp;true,&nbsp;&nbsp;dangerMode:&nbsp;true,}).then((willDelete)&nbsp;=&gt;&nbsp;{&nbsp;&nbsp;if&nbsp;(willDelete)&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;swal(&quot;Poof!&nbsp;Your&nbsp;imaginary&nbsp;file&nbsp;has&nbsp;been&nbsp;deleted!&quot;,&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;icon:&nbsp;&quot;success&quot;,&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;}&nbsp;else&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;swal(&quot;Your&nbsp;imaginary&nbsp;file&nbsp;is&nbsp;safe!&quot;);&nbsp;&nbsp;}});

4.2 (10 Votes)
0
5
1
Terri 90 points

                                    swal(&quot;Hello&nbsp;world!&quot;);

5 (1 Votes)
0
3.88
8
Ryan Tenney 110 points

                                    swal({&nbsp;&nbsp;icon:&nbsp;&quot;success&quot;,});

3.88 (8 Votes)
0
0
0
Danny hall 110 points

                                    swal(&quot;Error!&quot;,&nbsp;&quot;You&nbsp;clicked&nbsp;the&nbsp;button!&quot;,&nbsp;&quot;error&quot;);

0
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
sweet alert message sweetalert sweetalert.min.js sweetalert question info in sweet alert sweetalert annulation add sweetalert swal alerts sweet alert library sweet alert warning sweetalert then sweetalert dialog sweat alert sweetalert bootstrap js sweetalert example sweet alert swal message php SweetAlert sweet alert' sweetalter.js sweetalert with steps sweet alert small sweet alerts popup sweet alert popup sweet alert response Sweet alert tutorial javascript in sweetalert sweet alert properties sweet alert dialog what is sweetalert sweet alert sweetalert swal sweet alert add sweet alert sweat alerts sweet alert swal.fire sweet alerts.js html in sweetalert sweetalert.js sweet alert success success sweet alert Sweetalert information danger sweet alert sweetalert mvc js sweetalert sweetalert js swal use sweet alert sweet alert for sweet alert warning message what is swal in sweetalert sweetalert' sweetalert attributes sweetalert alert js warning in sweet alert sweet alert danger sweet alert documentation sweet alert js sweet alert options sweet alert que sweetalert guide sweet alert button sweet alert id how to make sweet alert how to use sweetalert sweet alert confirm sweet bootstrap const swal: SweetAlert; bootstrap sweetalert sweetalert documentation then sweetalert sweet alert doc sweet alert info sweetalert danger alertas con sweetalert sweetalert example bootstrap sweetalert example swal sweetalert sweetalert popup sweetalert success sweetaler js bootstrap for sweetalert sweet alert jquery sweet alert api sweet alert this aryelds sweetalert sweetalert sweet alerts sweet warning alert sweetalert tutorial sweetalert Swal.fire from sweet alert swal sweetalert html successalert sweet alert sweet alert example sweetalert options sweetalert js example sweet alert for warning sweetalert script swal alert jquery sweetalert latest sweetalert sweet alert sweete alert using sweet alert sweet alert bootstrap html swal attributes sweet alert call api sample sweet alert sweetalert2/dist/sweetalert2.min.js sweet min.js swal jquery confirm cdn sweet alert add sweet alert add custom class sweet alert current version ajax jquery on click show sweetalert sweetalert2 text html sweetalert buttons texr sweetalert cancel in input sweet alert fail alert sweetalert class swal in reactjs require('./sweetalert.css'); what is sweet alert sweet alert button action sweetalert confirmButtonClass sweetalert javascript Sweet Captcha alert/dist/sweetalert-dev.js sweetalert jquery sweet alter in comfirm box sweetalert 2.1 sweetalert v2 implementation sweetalert sweetalert
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source