Sweet Alert Syntax

I am failing to get sweet alert going and i think it has something to do with the syntax. Can someone show me what i should be doing

<!DOCTYPE html>
  <script src="dist/sweetalert.min.js"></script>
  <link rel="stylesheet" type="text/css" href="dist/sweetalert.css">
     title: 'Confirm',
     text: 'Are you sure to delete this message?',
     type: 'warning',
     showCancelButton: true,
     confirmButtonText: 'Yes, sir',
     cancelButtonText: 'Not at all'

Source: syntax

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.