title: Confirm on click HTML didn't work with Sweetalert2 but it's work with native browser confirm
body: <p>When I use native confirm() it's work fine but with Sweeetalert2 it didn't work can any one help ?</p>
  <p>I don't know why It's didn't work at all. but error here from Sweetalert2</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;title&gt;Document&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
      &lt;button onclick="confirm('Sure?') &amp;&amp; console.log('Work!')"&gt;Work fine&lt;/button&gt;
  
      &lt;button onclick="confirmation() &amp;&amp; console.log('Work!')"&gt;Didn't work&lt;/button&gt;
  
  
      &lt;script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"&gt;&lt;/script&gt;
  
      &lt;script&gt;
          window.confirmation = function () {
              Swal.fire({
                  title: 'Are you sure?',
                  text: "You won't be able to revert this!",
                  icon: 'warning',
                  showCancelButton: true,
                  confirmButtonColor: '#d33',
                  cancelButtonColor: '#3085d6',
                  confirmButtonText: 'Yes, delete it!',
                  reverseButtons: true
              }).then((result) =&gt; {
                  if (result.isConfirmed) {
                      return true;
                  }
              });
          };
      &lt;/script&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>