SweetAlert JS

SweetAlert A beautiful replacement for JavaScript’s “alert”.

Suboor Khan
Suboor Khan

Suboor Khan

Software Engineer

TypescriptJavascriptHTML

# Installation

Importing CDN url to your HTML file

<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>


# Getting started

Showing an alert

After importing the files into your application, you can call the swal function (make sure it's called after the DOM has loaded!)



     
        swal("Good job!", "You clicked the button!", "success");
     
 

Read more on official sweetAlert website.
HomeNews feedsWorkSessionsContact