title: how to run another JavaScript function when sweet alert script is running
body: <p>I want to implement javascript function to delete confirmation. After clicking <code>ok</code> button of confirmation alert table <code>tr</code> should be removed from front end. I have used <code>$("#confirm-btn-alert").click(function()</code> for confirmation alert which is in <code>sweet-alert-script.js</code> and <code>function SomeDeleteRowFunction(o)</code> which is in <code>newfile.html</code> for remove <code>tr</code></p>
  
  <p>sweet-alert-script.js</p>
  
  <pre><code>$(document).ready(function(){
      $("#confirm-btn-alert").click(function(){
  
          swal({
              title: "Are you sure?",
              text: "Once deleted, you will not be able to recover this imaginary file!",
              icon: "warning",
              buttons: true,
              dangerMode: true,
          })
          .then((willDelete) =&gt; {
              if (willDelete) {
                  swal("Poof! Your imaginary file has been deleted!", {
                      icon: "success",
                  });
              } else {
                  swal("Your imaginary file is safe!");
              }
          });
  
      });
  
  });
  </code></pre>
  
  <p>newfile.html</p>
  
  <pre><code>&lt;script&gt;
      function SomeDeleteRowFunction(o) {
          var p=o.parentNode.parentNode;
          p.parentNode.removeChild(p);
      }
  &lt;/script&gt;
  </code></pre>